aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-18 06:56:16 +0000
committerJames Brown2002-04-18 06:56:16 +0000
commitcd00f248e4d78b8ba37d50bf2fd9c4a084131888 (patch)
tree07a8cb65cad1b52549d7c9aeb79bdfaf2bbbfe96 /sdl.cpp
parenta16a816dbf092afec995dd567e6dca00efc30bbb (diff)
downloadscummvm-rg350-cd00f248e4d78b8ba37d50bf2fd9c4a084131888.tar.gz
scummvm-rg350-cd00f248e4d78b8ba37d50bf2fd9c4a084131888.tar.bz2
scummvm-rg350-cd00f248e4d78b8ba37d50bf2fd9c4a084131888.zip
Semi-fix shaking distortion. Mouse pointer corrupts background tho.
svn-id: r3990
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 31f6dac78b..3b0dcc6f11 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -337,6 +337,7 @@ void OSystem_SDL::copy_rect(const byte *buf, int pitch, int x, int y, int w, int
* and just updates those, on the actual display. */
add_dirty_rgn_auto(buf);
} else {
+ y+=_current_shake_pos;
/* Clip the coordinates */
if (x < 0) { w+=x; buf-=x; x = 0; }
if (y < 0) { h+=y; buf-=y*pitch; y = 0; }
@@ -501,7 +502,7 @@ void OSystem_SDL::add_dirty_rgn_auto(const byte *buf) {
ck[w+CKSUM_NUM] = ck[w];
w++;
} while (x+w != SCREEN_WIDTH/8 && ck[w] != ck[w+CKSUM_NUM]);
-
+
add_dirty_rect(x*8, y*8, w*8, 8);
if (force_full)