aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl/sdl.cpp
diff options
context:
space:
mode:
authorMax Horn2003-06-19 16:16:35 +0000
committerMax Horn2003-06-19 16:16:35 +0000
commited43323597f6d2b7896033e9cece5a0e87f3f30e (patch)
tree2c2a971568beed31d214ea884fcac4c8c41079e7 /backends/sdl/sdl.cpp
parent440100606c60124ad7beb0b3195fc8669498d1bc (diff)
downloadscummvm-rg350-ed43323597f6d2b7896033e9cece5a0e87f3f30e.tar.gz
scummvm-rg350-ed43323597f6d2b7896033e9cece5a0e87f3f30e.tar.bz2
scummvm-rg350-ed43323597f6d2b7896033e9cece5a0e87f3f30e.zip
some fixes for the GL backend - but there are still many things broken, e.g. Ctrl-B only acts on the second (of two) GL textures (which makes the black vertical line stand out even more)
svn-id: r8560
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r--backends/sdl/sdl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp
index d5b5d1656c..2caa4d2d67 100644
--- a/backends/sdl/sdl.cpp
+++ b/backends/sdl/sdl.cpp
@@ -61,7 +61,7 @@ void OSystem_SDL::set_palette(const byte *colors, uint start, uint num) {
const byte *b = colors;
uint i;
SDL_Color *base = _currentPalette + start;
- for(i = 0; i < num; i++) {
+ for (i = 0; i < num; i++) {
base[i].r = b[0];
base[i].g = b[1];
base[i].b = b[2];
@@ -283,7 +283,7 @@ void OSystem_SDL::update_screen() {
if (_scaler_proc == Normal1x) {
SDL_Surface *target = _overlayVisible ? _tmpscreen : _screen;
- for(r = _dirty_rect_list; r != last_rect; ++r) {
+ for (r = _dirty_rect_list; r != last_rect; ++r) {
dst = *r;
if (_overlayVisible) {
@@ -296,7 +296,7 @@ void OSystem_SDL::update_screen() {
}
} else {
if (!_overlayVisible) {
- for(r = _dirty_rect_list; r != last_rect; ++r) {
+ for (r = _dirty_rect_list; r != last_rect; ++r) {
dst = *r;
dst.x++; // Shift rect by one since 2xSai needs to acces the data around
dst.y++; // any pixel to scale it, and we want to avoid mem access crashes.
@@ -311,7 +311,7 @@ void OSystem_SDL::update_screen() {
srcPitch = _tmpscreen->pitch;
dstPitch = _hwscreen->pitch;
- for(r = _dirty_rect_list; r != last_rect; ++r) {
+ for (r = _dirty_rect_list; r != last_rect; ++r) {
register int dst_y = r->y + _currentShakePos;
register int dst_h = 0;
if (dst_y < _screenHeight) {