[Scummvm-cvs-logs] CVS: scummvm/sword1 animation.cpp,1.23,1.24
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Tue Mar 23 23:41:09 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.35,1.36 animation.h,1.27,1.28 d_draw.h,1.26,1.27
- Next message: [Scummvm-cvs-logs] CVS: scummvm/graphics animation.cpp,1.5,1.6 animation.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21088/sword1
Modified Files:
animation.cpp
Log Message:
Use the binary .pal file format that was introduced for 0.6.0.
Invalidate the lookup table when the screen changes. (TODO: We also have to
invalidate it if the change happens between cutscenes, don't we?)
Some cleanup, particularly in the BS2 cutscene player. More needed, I
guess...
Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/animation.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- animation.cpp 23 Mar 2004 00:10:18 -0000 1.23
+++ animation.cpp 24 Mar 2004 07:29:59 -0000 1.24
@@ -69,16 +69,26 @@
#ifndef BACKEND_8BIT
_sys->updateScreen();
#endif
- // FIXME: check for ESC and abbort animation be just returning from the function
OSystem::Event event;
while (_sys->poll_event(&event)) {
- if ((event.event_code == OSystem::EVENT_KEYDOWN) &&
- (event.kbd.keycode == 27)) {
- delete anim;
- return;
- }
- if (event.event_code == OSystem::EVENT_QUIT)
+ switch (event.event_code) {
+#ifndef BACKEND_8BIT
+ case OSystem::EVENT_SCREEN_CHANGED:
+ anim->invalidateLookup(true);
+ break;
+#endif
+ case OSystem::EVENT_KEYDOWN:
+ if (event.kbd.keycode == 27) {
+ delete anim;
+ return;
+ }
+ break;
+ case OSystem::EVENT_QUIT:
_sys->quit();
+ break;
+ default:
+ break;
+ }
}
}
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.35,1.36 animation.h,1.27,1.28 d_draw.h,1.26,1.27
- Next message: [Scummvm-cvs-logs] CVS: scummvm/graphics animation.cpp,1.5,1.6 animation.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list