Fix a sizing bug when changing screen layout.

This commit is contained in:
luigi__ 2009-12-22 18:03:04 +00:00
parent 1058078891
commit b1f426ba3f
1 changed files with 3 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ void doLCDsLayout()
GetClientRect(hwnd, &rc); GetClientRect(hwnd, &rc);
oldwidth = (rc.right - rc.left); oldwidth = (rc.right - rc.left);
oldheight = (rc.bottom - rc.top); oldheight = (rc.bottom - rc.top) - MainWindowToolbar->GetHeight();
newwidth = oldwidth; newwidth = oldwidth;
newheight = oldheight; newheight = oldheight;
@ -3977,6 +3977,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
break; break;
case WM_KEYDOWN: case WM_KEYDOWN:
//MainWindowToolbar->Show(false);
input_acquire(); input_acquire();
if(wParam != VK_PAUSE) if(wParam != VK_PAUSE)
break; break;
@ -4005,6 +4006,7 @@ DOKEYDOWN:
break; break;
} }
case WM_KEYUP: case WM_KEYUP:
//MainWindowToolbar->Show(true);
//handle ctr+printscreen: our own custom printscreener //handle ctr+printscreen: our own custom printscreener
if (wParam == VK_SNAPSHOT) { if (wParam == VK_SNAPSHOT) {
if(GetKeyState(VK_CONTROL)&0x8000) if(GetKeyState(VK_CONTROL)&0x8000)