diff options
author | Paweł Kołodziejski | 2003-11-08 22:57:42 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-11-08 22:57:42 +0000 |
commit | 13c7acee9d57cc5d3134c9f5be0f7cb2614c33e7 (patch) | |
tree | 3f382ac8a9a37673da8aa77e11d335fa9bd9129d /backends/sdl | |
parent | b5a7ef0822d336958682b3f9b8b1c4fc0d28af3c (diff) | |
download | scummvm-rg350-13c7acee9d57cc5d3134c9f5be0f7cb2614c33e7.tar.gz scummvm-rg350-13c7acee9d57cc5d3134c9f5be0f7cb2614c33e7.tar.bz2 scummvm-rg350-13c7acee9d57cc5d3134c9f5be0f7cb2614c33e7.zip |
cleanup whitespaces
svn-id: r11220
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index ed6669f069..4656d91232 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -198,7 +198,7 @@ void OSystem_SDL_Common::copy_rect(const byte *src, int pitch, int x, int y, int 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 @@ void OSystem_SDL_Common::move_screen(int dx, int dy, int height) { // 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 @@ void OSystem_SDL_Common::move_screen(int dx, int dy, int height) { 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 @@ void OSystem_SDL_Common::move_screen(int dx, int dy, int height) { 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::mk_checksums(const byte *buf) { 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 @@ void OSystem_SDL_Common::add_dirty_rgn_auto(const byte *buf) { 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. */ |