aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2003-07-03 19:12:24 +0000
committerMax Horn2003-07-03 19:12:24 +0000
commit6b7e12faedcd742892476911611e31b4ee769b57 (patch)
tree1ce6730bfcd86b1cff4915887a9cad92dba30796 /backends/sdl
parent2ea85c6d4e5608beadcf77f1cb1ff6215f27d7ed (diff)
downloadscummvm-rg350-6b7e12faedcd742892476911611e31b4ee769b57.tar.gz
scummvm-rg350-6b7e12faedcd742892476911611e31b4ee769b57.tar.bz2
scummvm-rg350-6b7e12faedcd742892476911611e31b4ee769b57.zip
fix for bug #765402: no shaking with 1x scaler
svn-id: r8724
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl.cpp1
-rw-r--r--backends/sdl/sdl_gl.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp
index 4e9cb69bf9..0e2d2b42a1 100644
--- a/backends/sdl/sdl.cpp
+++ b/backends/sdl/sdl.cpp
@@ -265,6 +265,7 @@ void OSystem_SDL::update_screen() {
dst.x--;
dst.y--;
}
+ dst.y += _currentShakePos;
if (SDL_BlitSurface(target, r, _hwscreen, &dst) != 0)
error("SDL_BlitSurface failed: %s", SDL_GetError());
}
diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp
index afb916acb1..118828e287 100644
--- a/backends/sdl/sdl_gl.cpp
+++ b/backends/sdl/sdl_gl.cpp
@@ -419,6 +419,7 @@ void OSystem_SDL_OpenGL::update_screen() {
dst.x--;
dst.y--;
}
+ dst.y += _currentShakePos;
if (SDL_BlitSurface(target, r, _hwscreen, &dst) != 0)
error("SDL_BlitSurface failed: %s", SDL_GetError());
}