[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.105,2.106 script_v5.cpp,1.79,1.80 scumm.h,1.193,1.194 scummvm.cpp,2.150,2.151
Max Horn
fingolfin at users.sourceforge.net
Thu May 15 15:49:04 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.104,2.105 scumm.h,1.192,1.193 scummvm.cpp,2.149,2.150 verbs.cpp,1.39,1.40
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm script_v8.cpp,2.157,2.158 script_v6.cpp,1.114,1.115
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv31290
Modified Files:
gfx.cpp script_v5.cpp scumm.h scummvm.cpp
Log Message:
cleanup
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.105
retrieving revision 2.106
diff -u -d -r2.105 -r2.106
--- gfx.cpp 15 May 2003 22:41:35 -0000 2.105
+++ gfx.cpp 15 May 2003 22:48:05 -0000 2.106
@@ -582,7 +582,7 @@
int i, j, offset, x, y;
// Remove the flash light first if it was previously drawn
- if (_flashlightIsDrawn) {
+ if (_flashlight.isDrawn) {
updateDirtyRect(0, _flashlight.x, _flashlight.x + _flashlight.w,
_flashlight.y, _flashlight.y + _flashlight.h, USAGE_BIT_DIRTY);
@@ -593,10 +593,10 @@
_flashlight.buffer += _screenWidth;
} while (--i);
}
- _flashlightIsDrawn = false;
+ _flashlight.isDrawn = false;
}
- if (_flashlightXStrips == 0 || _flashlightYStrips == 0)
+ if (_flashlight.xStrips == 0 || _flashlight.yStrips == 0)
return;
// Calculate the area of the flashlight
@@ -608,8 +608,8 @@
x = a->x;
y = a->y;
}
- _flashlight.w = _flashlightXStrips * 8;
- _flashlight.h = _flashlightYStrips * 8;
+ _flashlight.w = _flashlight.xStrips * 8;
+ _flashlight.h = _flashlight.yStrips * 8;
_flashlight.x = x - _flashlight.w / 2 - _screenStartStrip * 8;
_flashlight.y = y - _flashlight.h / 2;
@@ -659,7 +659,7 @@
}
}
- _flashlightIsDrawn = true;
+ _flashlight.isDrawn = true;
}
// Redraw background as needed, i.e. the left/right sides if scrolling took place etc.
@@ -705,7 +705,7 @@
redrawBGStrip(0, 1);
} else if (_fullRedraw != 0 || camera._cur.x != camera._last.x) {
_BgNeedsRedraw = false;
- _flashlightIsDrawn = false;
+ _flashlight.isDrawn = false;
redrawBGStrip(0, gdi._numStrips);
}
}
Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- script_v5.cpp 15 May 2003 20:47:31 -0000 1.79
+++ script_v5.cpp 15 May 2003 22:48:06 -0000 1.80
@@ -1314,8 +1314,8 @@
if (c == 0)
VAR(VAR_CURRENT_LIGHTS) = a;
else if (c == 1) {
- _flashlightXStrips = a;
- _flashlightYStrips = b;
+ _flashlight.xStrips = a;
+ _flashlight.yStrips = b;
}
_fullRedraw = 1;
}
Index: scumm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -d -r1.193 -r1.194
--- scumm.h 15 May 2003 22:41:35 -0000 1.193
+++ scumm.h 15 May 2003 22:48:06 -0000 1.194
@@ -770,9 +770,9 @@
struct {
int x, y, w, h;
byte *buffer;
+ uint16 xStrips, yStrips;
+ bool isDrawn;
} _flashlight;
- uint16 _flashlightXStrips, _flashlightYStrips;
- bool _flashlightIsDrawn;
void getGraphicsPerformance();
void initScreens(int a, int b, int w, int h);
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.150
retrieving revision 2.151
diff -u -d -r2.150 -r2.151
--- scummvm.cpp 15 May 2003 22:41:35 -0000 2.150
+++ scummvm.cpp 15 May 2003 22:48:06 -0000 2.151
@@ -324,9 +324,6 @@
_switchRoomEffect = 0;
_doEffect = false;
memset(&_flashlight,0,sizeof(_flashlight));
- _flashlightXStrips = 0;
- _flashlightYStrips = 0;
- _flashlightIsDrawn = false;
_bompScaleRight = 0;
_bompScaleBottom = 0;
_bompScallingXPtr = NULL;
@@ -720,8 +717,8 @@
if (!(_features & GF_AFTER_V7)) {
// Setup light
- _flashlightXStrips = 7;
- _flashlightYStrips = 7;
+ _flashlight.xStrips = 7;
+ _flashlight.yStrips = 7;
_flashlight.buffer = NULL;
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.104,2.105 scumm.h,1.192,1.193 scummvm.cpp,2.149,2.150 verbs.cpp,1.39,1.40
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm script_v8.cpp,2.157,2.158 script_v6.cpp,1.114,1.115
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list