diff options
author | sluicebox | 2019-11-16 03:16:08 -0800 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-19 00:20:40 +0100 |
commit | ec840a73c7e0068c305cdff6bd628391a995eba7 (patch) | |
tree | 56754d8a33984d6eb41224d3601e2ed6e692d11d /backends/platform/wii | |
parent | 04372d156072973fa5ad62833a9fe6aa027faca5 (diff) | |
download | scummvm-rg350-ec840a73c7e0068c305cdff6bd628391a995eba7.tar.gz scummvm-rg350-ec840a73c7e0068c305cdff6bd628391a995eba7.tar.bz2 scummvm-rg350-ec840a73c7e0068c305cdff6bd628391a995eba7.zip |
WII: Implement horizontal shake
Diffstat (limited to 'backends/platform/wii')
-rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp index 8c104fb075..621f45cd99 100644 --- a/backends/platform/wii/osystem_gfx.cpp +++ b/backends/platform/wii/osystem_gfx.cpp @@ -546,6 +546,7 @@ void OSystem_Wii::unlockScreen() { void OSystem_Wii::setShakePos(int shakeXOffset, int shakeYOffset) { gfx_coords(&_coordsGame, &_texGame, GFX_COORD_FULLSCREEN); + _coordsGame.x -= f32(shakeXOffset) * _currentXScale; _coordsGame.y -= f32(shakeYOffset) * _currentYScale; } |