never mind. i was persuaded that i was wrong

This commit is contained in:
zeromus 2009-01-22 06:29:21 +00:00
parent b8b16c02df
commit a6b21e74e1
1 changed files with 3 additions and 6 deletions

View File

@ -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();