[Scummvm-git-logs] scummvm master -> 153afbd31f695fe05010f785e229819d011e0272

bluegr noreply at scummvm.org
Thu Jul 2 07:07:56 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
153afbd31f BACKENDS: OPENGL: Restore fractional cursor scale


Commit: 153afbd31f695fe05010f785e229819d011e0272
    https://github.com/scummvm/scummvm/commit/153afbd31f695fe05010f785e229819d011e0272
Author: tunnelsociety (tunnelsociety at mm.st)
Date: 2026-07-02T10:07:52+03:00

Commit Message:
BACKENDS: OPENGL: Restore fractional cursor scale

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 cfd7c21dcff..459563a8e2a 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1950,8 +1950,8 @@ void OpenGLGraphicsManager::recalculateCursorScaling() {
 			SWAP(rotatedWidth, rotatedHeight);
 		}
 
-		const float screenScaleFactorX = rotatedWidth / _gameScreen->getWidth();
-		const float screenScaleFactorY = rotatedHeight / _gameScreen->getHeight();
+		const float screenScaleFactorX = (float)rotatedWidth / _gameScreen->getWidth();
+		const float screenScaleFactorY = (float)rotatedHeight / _gameScreen->getHeight();
 
 		const float cursorScaleFactorX = screenScaleFactorX * _cursorScaleX;
 		const float cursorScaleFactorY = screenScaleFactorY * _cursorScaleY;




More information about the Scummvm-git-logs mailing list