[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.64,1.65
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Thu Jul 14 00:00:13 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.63,1.64 console.h,1.32,1.33
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actor.cpp,1.155,1.156 actor.h,1.83,1.84 events.cpp,1.59,1.60 font.cpp,1.30,1.31 font.h,1.13,1.14 image.cpp,1.22,1.23 interface.cpp,1.115,1.116 ite_introproc.cpp,1.58,1.59 module.mk,1.26,1.27 objectmap.cpp,1.41,1.42 puzzle.cpp,1.10,1.11 puzzle.h,1.3,1.4 render.cpp,1.66,1.67 render.h,1.25,1.26 saga.h,1.105,1.106 scene.cpp,1.120,1.121 scene.h,1.61,1.62 script.h,1.92,1.93 sfuncs.cpp,1.137,1.138 sprite.cpp,1.58,1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27743
Modified Files:
console.cpp
Log Message:
Don't count the time it takes to do the blending when timing the slide
action of the console. (I thought I could do this simpler by doing the
blending in open(), but for some reason I couldn't get that to work, and I
would still have had to blend in drawDialog() anyway, so maybe this is for
the best...)
Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- console.cpp 13 Jul 2005 14:38:26 -0000 1.64
+++ console.cpp 14 Jul 2005 06:58:06 -0000 1.65
@@ -121,7 +121,6 @@
// background in a separate "canvas", just like in the About dialog.
_canvas.pixels = NULL;
-
// Initiate sliding the console down. We do a very simple trick to achieve
// this effect: we simply move the console dialog just above (outside) the
// visible screen area, then shift it down in handleTickle() over a
@@ -145,9 +144,19 @@
void ConsoleDialog::drawDialog() {
if (!_canvas.pixels) {
- // Blend over the background
+ // Blend over the background. Don't count the time used for
+ // this when timing the slide action.
+
+ uint32 now = g_system->getMillis();
+ uint32 delta;
+
g_gui.blendRect(0, 0, _w, _h, g_gui._bgcolor, 2);
g_gui.copyToSurface(&_canvas, 0, 0, _w, _h);
+
+ delta = g_system->getMillis() - now;
+
+ if (_slideTime)
+ _slideTime += delta;
}
g_gui.drawSurface(_canvas, 0, 0);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.63,1.64 console.h,1.32,1.33
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actor.cpp,1.155,1.156 actor.h,1.83,1.84 events.cpp,1.59,1.60 font.cpp,1.30,1.31 font.h,1.13,1.14 image.cpp,1.22,1.23 interface.cpp,1.115,1.116 ite_introproc.cpp,1.58,1.59 module.mk,1.26,1.27 objectmap.cpp,1.41,1.42 puzzle.cpp,1.10,1.11 puzzle.h,1.3,1.4 render.cpp,1.66,1.67 render.h,1.25,1.26 saga.h,1.105,1.106 scene.cpp,1.120,1.121 scene.h,1.61,1.62 script.h,1.92,1.93 sfuncs.cpp,1.137,1.138 sprite.cpp,1.58,1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list