win32: more threading fixes, and fix a bug in stylus coordinate osd

This commit is contained in:
zeromus 2009-07-28 05:29:28 +00:00
parent 11e417f55a
commit 2c3cef961c
2 changed files with 4 additions and 3 deletions

View File

@ -239,7 +239,7 @@ void DrawHUD()
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());
osd->addFixed(Hud.InputDisplay.x, Hud.InputDisplay.y, "%s",(InputDisplayString + ss.str()).c_str());
TouchDisplay();
}

View File

@ -1858,6 +1858,9 @@ int _main()
MainWindow->Show(SW_NORMAL);
run();
KillDisplay();
SaveRecentRoms();
NDS_DeInit();
DRV_AviEnd();
@ -1894,8 +1897,6 @@ int _main()
delete MainWindow;
KillDisplay();
if (lpDDClipPrimary!=NULL) IDirectDraw7_Release(lpDDClipPrimary);
if (lpPrimarySurface != NULL) IDirectDraw7_Release(lpPrimarySurface);
if (lpBackSurface != NULL) IDirectDraw7_Release(lpBackSurface);