mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
GRAPHICS: Fix screen shake x/y offsets scaling
The x and y offsets need to be scaled the same way as the rest of the screen output.
This commit is contained in:
parent
70d7de0b98
commit
c4780d2bef
@ -405,9 +405,9 @@ private:
|
||||
width = fracToInt(height * displayAspect);
|
||||
}
|
||||
}
|
||||
|
||||
drawRect.left = ((_windowWidth - width) / 2) + _gameScreenShakeXOffset;
|
||||
drawRect.top = ((_windowHeight - height) / 2) + _gameScreenShakeYOffset;
|
||||
|
||||
drawRect.left = ((_windowWidth - width) / 2) + _gameScreenShakeXOffset * _windowWidth / getWidth();
|
||||
drawRect.top = ((_windowHeight - height) / 2) + _gameScreenShakeYOffset * _windowHeight / getHeight();
|
||||
drawRect.setWidth(width);
|
||||
drawRect.setHeight(height);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user