aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-graphics.cpp6
-rw-r--r--backends/platform/sdl/graphics.cpp2
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)