- fixed: GUI mouse events did not take letterboxing into account.
SVN r2788 (trunk)
This commit is contained in:
parent
106cf82f62
commit
c948fd08f2
4 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue