- fixed: GUI mouse events did not take letterboxing into account.

SVN r2788 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-15 21:53:12 +00:00
commit c948fd08f2
4 changed files with 6 additions and 1 deletions

View file

@ -325,6 +325,7 @@ bool GUIWndProcHook(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESU
int shift = screen? screen->GetPixelDoubling() : 0;
ev.data1 = LOWORD(lParam) >> shift;
ev.data2 = HIWORD(lParam) >> shift;
if (screen) ev.data2 -= (screen->GetTrueHeight() - screen->GetHeight())/2;
}
if (wParam & MK_SHIFT) ev.data3 |= GKM_SHIFT;