[Scummvm-cvs-logs] SF.net SVN: scummvm: [24781] scummvm/trunk/engines/touche
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Fri Nov 24 19:18:48 CET 2006
Revision: 24781
http://svn.sourceforge.net/scummvm/?rev=24781&view=rev
Author: cyx
Date: 2006-11-24 10:18:48 -0800 (Fri, 24 Nov 2006)
Log Message:
-----------
update the screen at the end of each engine cycle, it should make the mouse cursor more responsive
Modified Paths:
--------------
scummvm/trunk/engines/touche/touche.cpp
scummvm/trunk/engines/touche/ui.cpp
Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp 2006-11-24 09:27:50 UTC (rev 24780)
+++ scummvm/trunk/engines/touche/touche.cpp 2006-11-24 18:18:48 UTC (rev 24781)
@@ -254,6 +254,8 @@
if ((cycleCounter % 2) == 0) {
fadePaletteFromFlags();
}
+
+ _system->updateScreen();
int delay = _system->getMillis() - frameTimeStamp;
delay = (_fastMode ? 10 : cycleDelay) - delay;
if (delay < 1) {
@@ -3243,13 +3245,11 @@
void ToucheEngine::updateScreenArea(int x, int y, int w, int h) {
_system->copyRectToScreen(_offscreenBuffer + y * 640 + x, 640, x, y, w, h);
- _system->updateScreen();
}
void ToucheEngine::updateEntireScreen() {
int h = (_flagsTable[606] != 0) ? 400 : 352;
_system->copyRectToScreen(_offscreenBuffer, 640, 0, 0, 640, h);
- _system->updateScreen();
}
void ToucheEngine::updateDirtyScreenAreas() {
@@ -3271,7 +3271,6 @@
_system->copyRectToScreen(_offscreenBuffer + r.top * 640 + r.left, 640, r.left, r.top, r.width(), r.height());
--_menuRedrawCounter;
}
- _system->updateScreen();
}
}
Modified: scummvm/trunk/engines/touche/ui.cpp
===================================================================
--- scummvm/trunk/engines/touche/ui.cpp 2006-11-24 09:27:50 UTC (rev 24780)
+++ scummvm/trunk/engines/touche/ui.cpp 2006-11-24 18:18:48 UTC (rev 24781)
@@ -514,6 +514,7 @@
Graphics::drawRect(_offscreenBuffer, 640, 0, 0, 640, 16, 0xD6, 0xD8);
Graphics::drawString16(_offscreenBuffer, 640, 0xFF, 0, 0, str);
updateScreenArea(0, 0, 640, 16);
+ _system->updateScreen();
}
void ToucheEngine::clearStatusString() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list