[Scummvm-cvs-logs] CVS: scummvm/backends/sdl graphics.cpp,1.26,1.27
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sat Feb 19 08:04:48 CET 2005
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17170
Modified Files:
graphics.cpp
Log Message:
compatibility for emsvc
Index: graphics.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/graphics.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- graphics.cpp 19 Feb 2005 00:24:48 -0000 1.26
+++ graphics.cpp 19 Feb 2005 16:04:03 -0000 1.27
@@ -1100,7 +1100,7 @@
byte *dstPtr;
const byte *srcPtr = _mouseData;
byte color;
- int w, h;
+ int w, h, i, j;
if (!_mouseOrigSurface || !_mouseData)
return;
@@ -1111,9 +1111,9 @@
SDL_LockSurface(_mouseOrigSurface);
// Make whole surface transparent
- for (int i = 0; i < h + 2; i++) {
+ for (i = 0; i < h + 2; i++) {
dstPtr = (byte *)_mouseOrigSurface->pixels + _mouseOrigSurface->pitch * i;
- for (int j = 0; j < w + 2; j++) {
+ for (j = 0; j < w + 2; j++) {
*(uint16 *)dstPtr = kMouseColorKey;
dstPtr += 2;
}
@@ -1122,8 +1122,8 @@
// Draw from [1,1] since AdvMame2x adds artefact at 0,0
dstPtr = (byte *)_mouseOrigSurface->pixels + _mouseOrigSurface->pitch + 2;
- for (int i = 0; i < h; i++) {
- for (int j = 0; j < w; j++) {
+ for (i = 0; i < h; i++) {
+ for (j = 0; j < w; j++) {
color = *srcPtr;
if (color != _mouseKeyColor) { // transparent, don't draw
if (_cursorHasOwnPalette && !_overlayVisible)
More information about the Scummvm-git-logs
mailing list