[Scummvm-git-logs] scummvm branch-2-7 -> d1e6b4ea095d1c1ae02eaebde5ba973753d05e1f
AndywinXp
noreply at scummvm.org
Tue Jan 24 21:36:52 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d1e6b4ea09 OPENGL: Fix glitch when shaking screen
Commit: d1e6b4ea095d1c1ae02eaebde5ba973753d05e1f
https://github.com/scummvm/scummvm/commit/d1e6b4ea095d1c1ae02eaebde5ba973753d05e1f
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-24T22:36:27+01:00
Commit Message:
OPENGL: Fix glitch when shaking screen
Everything was converted to unsigned instead of the opposite.
Changed paths:
backends/graphics/opengl/opengl-graphics.cpp
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 13b9572f121..15c536b7fb7 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1489,8 +1489,8 @@ void OpenGLGraphicsManager::recalculateDisplayAreas() {
_gameDrawRect.width(),
_gameDrawRect.height());
- _shakeOffsetScaled = Common::Point(_gameScreenShakeXOffset * _gameDrawRect.width() / _currentState.gameWidth,
- _gameScreenShakeYOffset * _gameDrawRect.height() / _currentState.gameHeight);
+ _shakeOffsetScaled = Common::Point(_gameScreenShakeXOffset * _gameDrawRect.width() / (int)_currentState.gameWidth,
+ _gameScreenShakeYOffset * _gameDrawRect.height() / (int)_currentState.gameHeight);
// Update the cursor position to adjust for new display area.
setMousePosition(_cursorX, _cursorY);
More information about the Scummvm-git-logs
mailing list