aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPaweł Kołodziejski2005-02-19 16:04:03 +0000
committerPaweł Kołodziejski2005-02-19 16:04:03 +0000
commit3184c2de34c89a1b380fffa9f9ac83f53dc062d7 (patch)
tree643be1942004ca574d591b336b3babdfd50991c4 /backends
parente2753574aca02a3da52c8bce675b95eb92216a74 (diff)
downloadscummvm-rg350-3184c2de34c89a1b380fffa9f9ac83f53dc062d7.tar.gz
scummvm-rg350-3184c2de34c89a1b380fffa9f9ac83f53dc062d7.tar.bz2
scummvm-rg350-3184c2de34c89a1b380fffa9f9ac83f53dc062d7.zip
compatibility for emsvc
svn-id: r16815
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/graphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp
index cf1aa37242..775db97ba1 100644
--- a/backends/sdl/graphics.cpp
+++ b/backends/sdl/graphics.cpp
@@ -1100,7 +1100,7 @@ void OSystem_SDL::blitCursor() {
byte *dstPtr;
const byte *srcPtr = _mouseData;
byte color;
- int w, h;
+ int w, h, i, j;
if (!_mouseOrigSurface || !_mouseData)
return;
@@ -1111,9 +1111,9 @@ void OSystem_SDL::blitCursor() {
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 @@ void OSystem_SDL::blitCursor() {
// 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)