diff options
Diffstat (limited to 'backends/graphics')
| -rw-r--r-- | backends/graphics/windowed.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/windowed.h b/backends/graphics/windowed.h index bea4522d5a..99115275de 100644 --- a/backends/graphics/windowed.h +++ b/backends/graphics/windowed.h @@ -406,8 +406,8 @@ private:  			}  		} -		drawRect.left = ((_windowWidth - width) / 2) + _gameScreenShakeXOffset * _windowWidth / getWidth(); -		drawRect.top = ((_windowHeight - height) / 2) + _gameScreenShakeYOffset * _windowHeight / getHeight(); +		drawRect.left = ((_windowWidth - width) / 2) + _gameScreenShakeXOffset * width / getWidth(); +		drawRect.top = ((_windowHeight - height) / 2) + _gameScreenShakeYOffset * height / getHeight();  		drawRect.setWidth(width);  		drawRect.setHeight(height);  	}  | 
