From c07b76dc867308532e920f64fd604368ac2015df Mon Sep 17 00:00:00 2001 From: luigi__ Date: Tue, 22 Dec 2009 19:08:34 +0000 Subject: [PATCH] Fix a bug with the touchscreen when the toolbar is enabled. --- desmume/src/windows/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 1fd6de87f..3134c8558 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -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);