From 6b7e12faedcd742892476911611e31b4ee769b57 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 3 Jul 2003 19:12:24 +0000 Subject: fix for bug #765402: no shaking with 1x scaler svn-id: r8724 --- backends/sdl/sdl.cpp | 1 + backends/sdl/sdl_gl.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'backends') 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()); } -- cgit v1.2.3