[Scummvm-cvs-logs] CVS: scummvm/sky screen.cpp,1.38,1.39
Robert G?ffringmann
lavosspawn at users.sourceforge.net
Tue Jul 8 15:28:06 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.28,1.29 disk.cpp,1.37,1.38
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince pocketpc.cpp,1.24,1.25 smartphone.cpp,1.6,1.7 wince.cpp,1.11,1.12 wince.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv400/sky
Modified Files:
screen.cpp
Log Message:
another fix for the swing seqs
Index: screen.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/screen.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- screen.cpp 7 Jul 2003 17:00:55 -0000 1.38
+++ screen.cpp 8 Jul 2003 22:27:17 -0000 1.39
@@ -422,8 +422,16 @@
uint8 gridSta = (uint8)((screenPos / (GAME_SCREEN_WIDTH * 16))*20 + ((screenPos % GAME_SCREEN_WIDTH) >> 4));
uint8 gridEnd = (uint8)(((screenPos+nrToDo) / (GAME_SCREEN_WIDTH * 16))*20 + (((screenPos+nrToDo) % GAME_SCREEN_WIDTH) >> 4));
- for (cnt = gridSta; cnt <= gridEnd; cnt++)
- _seqGrid[cnt] = 1;
+ if (gridEnd >= gridSta)
+ for (cnt = gridSta; cnt <= gridEnd; cnt++)
+ _seqGrid[cnt] = 1;
+ else {
+ for (cnt = gridSta; cnt < (gridSta / 20 + 1) * 20; cnt++)
+ _seqGrid[cnt] = 1;
+ for (cnt = (gridEnd / 20) * 20; cnt <= gridEnd; cnt++)
+ _seqGrid[cnt] = 1;
+ }
+
for (cnt = 0; cnt < nrToDo; cnt++) {
_currentScreen[screenPos] = _seqInfo.seqDataPos[0];
_seqInfo.seqDataPos++;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.28,1.29 disk.cpp,1.37,1.38
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince pocketpc.cpp,1.24,1.25 smartphone.cpp,1.6,1.7 wince.cpp,1.11,1.12 wince.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list