diff options
Diffstat (limited to 'backends/sdl')
| -rw-r--r-- | backends/sdl/sdl.cpp | 1 | ||||
| -rw-r--r-- | backends/sdl/sdl_gl.cpp | 1 |
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()); } |
