[Scummvm-git-logs] scummvm master -> 4f91045d150c1268a998d8fdbdabb23f18b62c0b
aquadran
noreply at scummvm.org
Sat Jul 25 21:26:36 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:
4f91045d15 WINTERMUTE: Fixed gap in 3D renderer while drawing sprites for scenes with scaling factor.
Commit: 4f91045d150c1268a998d8fdbdabb23f18b62c0b
https://github.com/scummvm/scummvm/commit/4f91045d150c1268a998d8fdbdabb23f18b62c0b
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2026-07-25T23:26:23+02:00
Commit Message:
WINTERMUTE: Fixed gap in 3D renderer while drawing sprites for scenes with scaling factor.
Changed paths:
engines/wintermute/base/gfx/opengl/base_surface_opengl3d.cpp
diff --git a/engines/wintermute/base/gfx/opengl/base_surface_opengl3d.cpp b/engines/wintermute/base/gfx/opengl/base_surface_opengl3d.cpp
index 2031fb8fc09..7edbbf55590 100644
--- a/engines/wintermute/base/gfx/opengl/base_surface_opengl3d.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_surface_opengl3d.cpp
@@ -106,8 +106,8 @@ bool BaseSurfaceOpenGL3D::display(int x, int y, Common::Rect32 rect, Graphics::T
bool BaseSurfaceOpenGL3D::displayTransRotate(int x, int y, float rotate, int32 hotspotX, int32 hotspotY, Common::Rect32 rect, float zoomX, float zoomY, uint32 alpha, Graphics::TSpriteBlendMode blendMode, bool mirrorX, bool mirrorY) {
prepareToDraw();
- x -= hotspotX;
- y -= hotspotY;
+ x -= (hotspotX * (zoomX / 100.0f));
+ y -= (hotspotY * (zoomY / 100.0f));
DXVector2 position(x, y);
DXVector2 rotation;
More information about the Scummvm-git-logs
mailing list