Fix a bug with the touchscreen when the toolbar is enabled.

This commit is contained in:
luigi__ 2009-12-22 19:08:34 +00:00
parent 1f58256b66
commit c07b76dc86
1 changed files with 2 additions and 2 deletions

View File

@ -537,7 +537,7 @@ void UnscaleScreenCoords(s32& x, s32& y)
RECT r;
GetNdsScreenRect(&r);
int winwidth = (r.right-r.left), winheight = (r.bottom-r.top) - MainWindowToolbar->GetHeight();
int winwidth = (r.right-r.left), winheight = (r.bottom-r.top);
x -= r.left;
y -= r.top;
@ -4206,7 +4206,7 @@ DOKEYDOWN:
SetCapture(hwnd);
s32 x = (s32)((s16)LOWORD(lParam));
s32 y = (s32)((s16)HIWORD(lParam)) - MainWindowToolbar->GetHeight();
s32 y = (s32)((s16)HIWORD(lParam));
UnscaleScreenCoords(x,y);