X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FWin32.cc;h=208c2c3df91919c24f4669612cef63b95450bf1c;hb=4b0c40a1d9982bdb4c07bff9256b18c3344c6aee;hp=6ba10bf08e64b883db3b35b114805d2af189a6bd;hpb=9836dedf7d175c2a40eabc29f8a5a004f2b8a08f;p=org.ibex.core.git diff --git a/src/org/xwt/plat/Win32.cc b/src/org/xwt/plat/Win32.cc index 6ba10bf..208c2c3 100644 --- a/src/org/xwt/plat/Win32.cc +++ b/src/org/xwt/plat/Win32.cc @@ -818,10 +818,10 @@ jint org::xwt::plat::Win32$Win32Surface::WndProc(jint _hwnd, jint _iMsg, jint _w addwidth = (window_rect.right - window_rect.left) - (client_rect.right - client_rect.left); addheight = (window_rect.bottom - window_rect.top) - (client_rect.bottom - client_rect.top); mmi = (MINMAXINFO*)lParam; - mmi->ptMinTrackSize.x = ((uint32_t)root->dmin(0)) + addwidth; - mmi->ptMinTrackSize.y = ((uint32_t)root->dmin(1)) + addheight; - mmi->ptMaxTrackSize.x = min(org::xwt::plat::Win32::getScreenWidth(), ((uint32_t)root->dmax(0)) + addwidth); - mmi->ptMaxTrackSize.y = min(org::xwt::plat::Win32::getScreenHeight(), ((uint32_t)root->dmax(1)) + addheight); + mmi->ptMinTrackSize.x = ((uint32_t)root->minwidth) + addwidth; + mmi->ptMinTrackSize.y = ((uint32_t)root->minheight) + addheight; + mmi->ptMaxTrackSize.x = min(org::xwt::plat::Win32::getScreenWidth(), ((uint32_t)root->maxwidth) + addwidth); + mmi->ptMaxTrackSize.y = min(org::xwt::plat::Win32::getScreenHeight(), ((uint32_t)root->maxheight) + addheight); return 0; case WM_PAINT: