diff options
author | Max Horn | 2003-01-12 14:18:05 +0000 |
---|---|---|
committer | Max Horn | 2003-01-12 14:18:05 +0000 |
commit | a4a4f043bf9c15c5608ca937bcc9076eb802102e (patch) | |
tree | 22b553c32de159ce52f359780a81db6ba332cbe6 /backends | |
parent | aa60f424bacaffe6c8d75703ec0ce267e0d75e26 (diff) | |
download | scummvm-rg350-a4a4f043bf9c15c5608ca937bcc9076eb802102e.tar.gz scummvm-rg350-a4a4f043bf9c15c5608ca937bcc9076eb802102e.tar.bz2 scummvm-rg350-a4a4f043bf9c15c5608ca937bcc9076eb802102e.zip |
fix for the black rect bug in COMI (thanks to Erik)... guess is that the checksum algo fails to detect the dirty regions. Why is it here at all, anyway? BBrox says it might be needed for Simon. So somebody should check that
svn-id: r6428
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 3 | ||||
-rw-r--r-- | backends/sdl/sdl.cpp | 2 | ||||
-rw-r--r-- | backends/sdl/sdl_gl.cpp | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index bbbc3b99fe..6a1e1da6d2 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -123,7 +123,8 @@ void OSystem_SDL_Common::copy_rect(const byte *buf, int pitch, int x, int y, int if (_screen == NULL) return; - if (((uint32)buf & 3) == 0 && pitch == _screenWidth && x==0 && y==0 && w==_screenWidth && h==_screenHeight && _mode_flags&DF_WANT_RECT_OPTIM) { + if (((uint32)buf & 3) == 0 && pitch == _screenWidth && x==0 && y==0 && + w==_screenWidth && h==_screenHeight && _mode_flags&DF_WANT_RECT_OPTIM) { /* Special, optimized case for full screen updates. * It tries to determine what areas were actually changed, * and just updates those, on the actual display. */ diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 3d8d2e1cf5..d6e6e8991d 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -77,7 +77,7 @@ void OSystem_SDL::set_palette(const byte *colors, uint start, uint num) { void OSystem_SDL::load_gfx_mode() { _forceFull = true; - _mode_flags = DF_WANT_RECT_OPTIM | DF_UPDATE_EXPAND_1_PIXEL; + _mode_flags = DF_UPDATE_EXPAND_1_PIXEL; _tmpscreen = NULL; _tmpScreenWidth = (_screenWidth + 3); diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index 375ca5b733..c0e3875026 100644 --- a/backends/sdl/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp @@ -89,7 +89,7 @@ void OSystem_SDL_OpenGL::load_gfx_mode() { Amask = 0; _forceFull = true; - _mode_flags = DF_WANT_RECT_OPTIM | DF_UPDATE_EXPAND_1_PIXEL; + _mode_flags = DF_UPDATE_EXPAND_1_PIXEL; _scaleFactor = 2; _tmpscreen = NULL; |