[Scummvm-cvs-logs] CVS: scummvm/backends/sdl graphics.cpp,1.19,1.20
Max Horn
fingolfin at users.sourceforge.net
Fri Dec 3 02:37:08 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/midi/mt32 partial.cpp,1.13,1.14 synth.cpp,1.30,1.31 synth.h,1.11,1.12
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.122,2.123 imuse.h,1.55,1.56 imuse_internal.h,2.36,2.37 scumm.cpp,1.281,1.282
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8437
Modified Files:
graphics.cpp
Log Message:
Paranoia
Index: graphics.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/graphics.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- graphics.cpp 1 Dec 2004 21:16:40 -0000 1.19
+++ graphics.cpp 3 Dec 2004 10:36:30 -0000 1.20
@@ -1062,13 +1062,15 @@
if (_mouseDrawn || !_mouseVisible)
return;
+ assert(_mouseData);
+
int x = _mouseCurState.x - _mouseHotspotX;
int y = _mouseCurState.y - _mouseHotspotY;
int w = _mouseCurState.w;
int h = _mouseCurState.h;
byte color;
const byte *src = _mouseData; // Image representing the mouse
-
+
// clip the mouse rect, and addjust the src pointer accordingly
if (x < 0) {
w += x;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/midi/mt32 partial.cpp,1.13,1.14 synth.cpp,1.30,1.31 synth.h,1.11,1.12
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.122,2.123 imuse.h,1.55,1.56 imuse_internal.h,2.36,2.37 scumm.cpp,1.281,1.282
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list