From a6b21e74e14e5897745e3a9a3070d0fa9e65f146 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 22 Jan 2009 06:29:21 +0000 Subject: [PATCH] never mind. i was persuaded that i was wrong --- desmume/src/windows/main.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 85ddac72e..9a966d9a9 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1947,12 +1947,9 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM translateXY(x,y); else y-=192; - //zero 21-01-2009 - if the touch is entirely out of bounds, - //I think we should throw it out instead of clamping it - //if(x<0) x = 0; else if(x>255) x = 255; - //if(y<0) y = 0; else if(y>192) y = 192; - if(x>=0 && x<=255 && y>=0 && y<=192) - NDS_setTouchPos(x, y); + if(x<0) x = 0; else if(x>255) x = 255; + if(y<0) y = 0; else if(y>192) y = 192; + NDS_setTouchPos(x, y); return 0; } NDS_releaseTouch();