aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-12-21 11:58:46 +0000
committerMax Horn2002-12-21 11:58:46 +0000
commit1943be0ffdb88ad896efae55085194b4d0a20de2 (patch)
tree9cd6349dcb7f8065fd12db84a8d9510737bc34fd
parent81dce87a5c17054438042d3af320b00fe46da389 (diff)
downloadscummvm-rg350-1943be0ffdb88ad896efae55085194b4d0a20de2.tar.gz
scummvm-rg350-1943be0ffdb88ad896efae55085194b4d0a20de2.tar.bz2
scummvm-rg350-1943be0ffdb88ad896efae55085194b4d0a20de2.zip
small mod to allow smooth scrolling to work with SDL backend
svn-id: r6039
-rw-r--r--backends/sdl/sdl-common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index e58234ff71..464f569f17 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -123,7 +123,7 @@ void OSystem_SDL_Common::copy_rect(const byte *buf, int pitch, int x, int y, int
if (_screen == NULL)
return;
- if (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. */