[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.98,1.99
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sat Nov 8 14:58:17 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.52,1.53 windows.cpp,1.13,1.14 ym2612.cpp,1.20,1.21
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.39,1.40 fmopl.cpp,1.18,1.19 midiparser.cpp,1.17,1.18 midiparser_xmidi.cpp,1.14,1.15 mixer.cpp,1.130,1.131 mixer.h,1.57,1.58 rate.cpp,1.28,1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv31968/sdl
Modified Files:
sdl-common.cpp
Log Message:
cleanup whitespaces
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- sdl-common.cpp 4 Nov 2003 20:46:20 -0000 1.98
+++ sdl-common.cpp 8 Nov 2003 22:57:42 -0000 1.99
@@ -198,7 +198,7 @@
byte *dst = (byte *)_screen->pixels + y * _screenWidth + x;
- if (_screenWidth==pitch && pitch==w) {
+ if (_screenWidth==pitch && pitch == w) {
memcpy(dst, src, h*w);
} else {
do {
@@ -218,15 +218,15 @@
// Short circuit check - do we have to do anything anyway?
if ((dx == 0 && dy == 0) || height <= 0)
return;
-
+
Common::StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
byte *src, *dst;
int x, y;
-
+
// We'll have to do a full screen redraw anyway, so set the flag.
_forceFull = true;
-
+
// Hide the mouse
if (_mouseDrawn)
undraw_mouse();
@@ -265,8 +265,8 @@
for (x = dx; x < _screenWidth; x++) {
*dst-- = *src--;
}
- src += _screenWidth + (_screenWidth-dx);
- dst += _screenWidth + (_screenWidth-dx);
+ src += _screenWidth + (_screenWidth - dx);
+ dst += _screenWidth + (_screenWidth - dx);
}
} else if (dx < 0) {
// move left - copy from left to right
@@ -276,8 +276,8 @@
for (x = -dx; x < _screenWidth; x++) {
*dst++ = *src++;
}
- src += _screenWidth - (_screenWidth+dx);
- dst += _screenWidth - (_screenWidth+dx);
+ src += _screenWidth - (_screenWidth + dx);
+ dst += _screenWidth - (_screenWidth + dx);
}
}
@@ -368,7 +368,7 @@
void OSystem_SDL_Common::add_dirty_rgn_auto(const byte *buf) {
assert(((long)buf & 3) == 0);
-
+
/* generate a table of the checksums */
mk_checksums(buf);
@@ -383,9 +383,9 @@
if (!_forceFull) {
int x,y,w;
uint32 *ck = _dirty_checksums;
-
+
for(y = 0; y!=_screenHeight / 8; y++) {
- for(x = 0; x!=_screenWidth / 8; x++,ck++) {
+ for(x = 0; x!=_screenWidth / 8; x++, ck++) {
if (ck[0] != ck[CKSUM_NUM]) {
/* found a dirty 8x8 block, now go as far to the right as possible,
and at the same time, unmark the dirty status by setting old to new. */
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.52,1.53 windows.cpp,1.13,1.14 ym2612.cpp,1.20,1.21
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.39,1.40 fmopl.cpp,1.18,1.19 midiparser.cpp,1.17,1.18 midiparser_xmidi.cpp,1.14,1.15 mixer.cpp,1.130,1.131 mixer.h,1.57,1.58 rate.cpp,1.28,1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list