< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Window.cpp
Print this page
*** 1940,1950 ****
break;
case WM_SYSCOMMAND:
//Fixed 6355340: Contents of frame are not layed out properly on maximize
if ((wParam & 0xFFF0) == SC_SIZE) {
AwtWindow::sm_resizing = TRUE;
! mr = WmSysCommand(wParam, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
if (mr != mrConsume) {
// Perform size-move loop here
AwtWindow::DefWindowProc(message, wParam, lParam);
}
AwtWindow::sm_resizing = FALSE;
--- 1940,1950 ----
break;
case WM_SYSCOMMAND:
//Fixed 6355340: Contents of frame are not layed out properly on maximize
if ((wParam & 0xFFF0) == SC_SIZE) {
AwtWindow::sm_resizing = TRUE;
! mr = WmSysCommand(static_cast<UINT>(wParam), GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
if (mr != mrConsume) {
// Perform size-move loop here
AwtWindow::DefWindowProc(message, wParam, lParam);
}
AwtWindow::sm_resizing = FALSE;
*** 2145,2156 ****
}
::GetWindowRect(GetHWnd(), &rect);
x = rect.left;
y = rect.top;
! w = (rect.right - rect.left) * scaleX / prevScaleX;
! h = (rect.bottom - rect.top) * scaleY / prevScaleY;
if (prevScreen != screen) {
Devices::InstanceAccess devices;
AwtWin32GraphicsDevice* device = devices->GetDevice(screen);
if (device) {
--- 2145,2156 ----
}
::GetWindowRect(GetHWnd(), &rect);
x = rect.left;
y = rect.top;
! w = static_cast<int>((rect.right - rect.left) * scaleX / prevScaleX);
! h = static_cast<int>((rect.bottom - rect.top) * scaleY / prevScaleY);
if (prevScreen != screen) {
Devices::InstanceAccess devices;
AwtWin32GraphicsDevice* device = devices->GetDevice(screen);
if (device) {
< prev index next >