diff options
author | John Willis | 2009-08-02 21:18:25 +0000 |
---|---|---|
committer | John Willis | 2009-08-02 21:18:25 +0000 |
commit | 9d360d946b35a1a520a5b43b688f085ab7e18727 (patch) | |
tree | 60146595f43317b6033ca3c5080dbd29f39c6616 /backends/platform | |
parent | acec9026a10aaec94577bbaeade91d97689c7b55 (diff) | |
download | scummvm-rg350-9d360d946b35a1a520a5b43b688f085ab7e18727.tar.gz scummvm-rg350-9d360d946b35a1a520a5b43b688f085ab7e18727.tar.bz2 scummvm-rg350-9d360d946b35a1a520a5b43b688f085ab7e18727.zip |
GP2XWiz/SDL: Fix 2 small typos.
svn-id: r43010
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-graphics.cpp | 6 | ||||
-rw-r--r-- | backends/platform/sdl/graphics.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp index c902188d4c..faa326e6f5 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp +++ b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp @@ -334,7 +334,7 @@ void OSystem_GP2XWIZ::internUpdateScreen() { for (r = _dirtyRectList; r != lastRect; ++r) { dst = *r; - dst.x++; // Shift rect by one since 2xSai needs to acces the data around + dst.x++; // Shift rect by one since 2xSai needs to access the data around dst.y++; // any pixel to scale it, and we want to avoid mem access crashes. if (SDL_BlitSurface(origSurf, r, srcSurf, &dst) != 0) @@ -371,11 +371,11 @@ void OSystem_GP2XWIZ::internUpdateScreen() { assert(scalerProc != NULL); if(_videoMode.mode == GFX_HALF && scalerProc == HalfScale){ - if(dst_x%2==1){ + if(dst_x % 2 == 1){ dst_x--; dst_w++; } - if(dst_y%2==1){ + if(dst_y % 2 == 1){ dst_y--; dst_h++; } diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 5fe4f12fe3..ffdcd675e6 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -675,7 +675,7 @@ void OSystem_SDL::internUpdateScreen() { for (r = _dirtyRectList; r != lastRect; ++r) { dst = *r; - dst.x++; // Shift rect by one since 2xSai needs to acces the data around + dst.x++; // Shift rect by one since 2xSai needs to access the data around dst.y++; // any pixel to scale it, and we want to avoid mem access crashes. if (SDL_BlitSurface(origSurf, r, srcSurf, &dst) != 0) |