a little improvement on stylus display (changed X pos slightly, and moved coordinate number display to the upper screen)

This commit is contained in:
gocha 2009-07-25 02:57:00 +00:00
parent 937246f64c
commit 72298e03f7
2 changed files with 10 additions and 3 deletions

View File

@ -631,8 +631,10 @@ static void openRecordingMovie(const char* fname)
/*extern uint8 joy[4];
memcpy(&cur_input_display,joy,4);*/
if (ShowInputDisplay && nds.isTouch)
osd->addFixed(nds.touchX >> 4, (nds.touchY >> 4) + 192 , "%s %d %d", "X", nds.touchX >> 4, nds.touchY >> 4);
if (ShowInputDisplay && nds.isTouch) {
osd->addFixed((nds.touchX >> 4) - 4, (nds.touchY >> 4) + 192 - 8, "X");
// osd->addFixed(nds.touchX >> 4, (nds.touchY >> 4) + 192 , "%s %d %d", "X", nds.touchX >> 4, nds.touchY >> 4);
}
}

View File

@ -1143,7 +1143,12 @@ DWORD WINAPI run()
CallRegisteredLuaFunctions(LUACALL_BEFOREEMULATION);
FCEUMOV_AddInputState();
if (ShowInputDisplay) osd->addFixed(Hud.InputDisplay.x, Hud.InputDisplay.y, "%s",InputDisplayString.c_str());
if (ShowInputDisplay) {
std::stringstream ss;
if(nds.isTouch)
ss << (nds.touchX >> 4) << " " << (nds.touchY >> 4);
osd->addFixed(Hud.InputDisplay.x, Hud.InputDisplay.y, "%s",(InputDisplayString += ss.str()).c_str());
}
{
Lock lock;