never mind. i was persuaded that i was wrong
This commit is contained in:
parent
b8b16c02df
commit
a6b21e74e1
|
@ -1947,12 +1947,9 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
translateXY(x,y);
|
translateXY(x,y);
|
||||||
else
|
else
|
||||||
y-=192;
|
y-=192;
|
||||||
//zero 21-01-2009 - if the touch is entirely out of bounds,
|
if(x<0) x = 0; else if(x>255) x = 255;
|
||||||
//I think we should throw it out instead of clamping it
|
if(y<0) y = 0; else if(y>192) y = 192;
|
||||||
//if(x<0) x = 0; else if(x>255) x = 255;
|
NDS_setTouchPos(x, y);
|
||||||
//if(y<0) y = 0; else if(y>192) y = 192;
|
|
||||||
if(x>=0 && x<=255 && y>=0 && y<=192)
|
|
||||||
NDS_setTouchPos(x, y);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
NDS_releaseTouch();
|
NDS_releaseTouch();
|
||||||
|
|
Loading…
Reference in New Issue