fix red line for touch screen input display

This commit is contained in:
zeromus 2012-05-05 16:30:09 +00:00
parent 167c85ae4b
commit aa1afebfc1
1 changed files with 4 additions and 3 deletions

View File

@ -433,9 +433,10 @@ static void TouchDisplay() {
aggDraw.hud->line(temptouch.X, temptouch.Y - 256, temptouch.X, temptouch.Y + 384); //vert
}
if(nds.isTouch) {
temptouch.X = nds.scr_touchX;
temptouch.Y = nds.scr_touchY;
if(nds.isTouch)
{
temptouch.X = nds.scr_touchX / 16;
temptouch.Y = nds.scr_touchY / 16;
aggDraw.hud->lineColor(255, 0, 0, 128);
aggDraw.hud->line(temptouch.X - 256, temptouch.Y + 192, temptouch.X + 256, temptouch.Y + 192); //horiz
aggDraw.hud->line(temptouch.X, temptouch.Y - 256, temptouch.X, temptouch.Y + 384); //vert