aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-07-14 13:33:58 +0000
committerTorbjörn Andersson2006-07-14 13:33:58 +0000
commit6358547a434a30283c7eeacab6e6f822fd2073d2 (patch)
treeb3f31db9dce97586f5df624e12be40b91d81d800 /backends/platform/sdl
parentfb3a3f75aa150d428d28dbb5a2391e833387946b (diff)
downloadscummvm-rg350-6358547a434a30283c7eeacab6e6f822fd2073d2.tar.gz
scummvm-rg350-6358547a434a30283c7eeacab6e6f822fd2073d2.tar.bz2
scummvm-rg350-6358547a434a30283c7eeacab6e6f822fd2073d2.zip
More whitespace changes.
svn-id: r23496
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/events.cpp4
-rw-r--r--backends/platform/sdl/graphics.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp
index 4fa02907db..72afad36df 100644
--- a/backends/platform/sdl/events.cpp
+++ b/backends/platform/sdl/events.cpp
@@ -183,8 +183,8 @@ bool OSystem_SDL::pollEvent(Event &event) {
return true;
}
- while(SDL_PollEvent(&ev)) {
- switch(ev.type) {
+ while (SDL_PollEvent(&ev)) {
+ switch (ev.type) {
case SDL_KEYDOWN:{
b = event.kbd.flags = SDLModToOSystemKeyFlags(SDL_GetModState());
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp
index eb560c5769..e78f94b4ef 100644
--- a/backends/platform/sdl/graphics.cpp
+++ b/backends/platform/sdl/graphics.cpp
@@ -944,8 +944,8 @@ void OSystem_SDL::makeChecksums(const byte *buf) {
/* the 8x8 blocks in buf are enumerated starting in the top left corner and
* reading each line at a time from left to right */
- for(y = 0; y != last_y; y++, buf += _screenWidth * (8 - 1))
- for(x = 0; x != last_x; x++, buf += 8) {
+ for (y = 0; y != last_y; y++, buf += _screenWidth * (8 - 1))
+ for (x = 0; x != last_x; x++, buf += 8) {
// Adler32 checksum algorithm (from RFC1950, used by gzip and zlib).
// This computes the Adler32 checksum of a 8x8 pixel block. Note
// that we can do the modulo operation (which is the slowest part)
@@ -990,8 +990,8 @@ void OSystem_SDL::addDirtyRgnAuto(const byte *buf) {
int x, y, w;
uint32 *ck = _dirtyChecksums;
- for(y = 0; y != _screenHeight / 8; y++) {
- for(x = 0; x != _screenWidth / 8; x++, ck++) {
+ for (y = 0; y != _screenHeight / 8; y++) {
+ for (x = 0; x != _screenWidth / 8; x++, ck++) {
if (ck[0] != ck[_cksumNum]) {
/* 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. */