From aa1afebfc1eb6f6e297725ea891358a71907c1b9 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 5 May 2012 16:30:09 +0000 Subject: [PATCH] fix red line for touch screen input display --- desmume/src/GPU_osd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU_osd.cpp b/desmume/src/GPU_osd.cpp index ae47372d3..e3c99fda2 100644 --- a/desmume/src/GPU_osd.cpp +++ b/desmume/src/GPU_osd.cpp @@ -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