part of patch #774556: fix for aspect mode + shaking

svn-id: r9102
This commit is contained in:
Max Horn 2003-07-21 00:01:05 +00:00
parent 6a8078b2fb
commit 88810dc9bd
2 changed files with 8 additions and 0 deletions

View file

@ -215,6 +215,10 @@ void OSystem_SDL::update_screen() {
// If the shake position changed, fill the dirty area with blackness
if (_currentShakePos != _newShakePos) {
SDL_Rect blackrect = {0, 0, _screenWidth * _scaleFactor, _newShakePos * _scaleFactor};
if (_adjustAspectRatio)
blackrect.h = real2Aspect(blackrect.h - 1) + 1;
SDL_FillRect(_hwscreen, &blackrect, 0);
_currentShakePos = _newShakePos;