[Scummvm-git-logs] scummvm master -> e5b2ecedc50fccebfd36244000f87c5fe63946ab

aquadran noreply at scummvm.org
Sun Nov 3 09:52:40 UTC 2024


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:
e5b2ecedc5 WINTERMUTE: Small cleanup in drawSpriteEx()


Commit: e5b2ecedc50fccebfd36244000f87c5fe63946ab
    https://github.com/scummvm/scummvm/commit/e5b2ecedc50fccebfd36244000f87c5fe63946ab
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-11-03T10:52:36+01:00

Commit Message:
WINTERMUTE: Small cleanup in drawSpriteEx()

Changed paths:
    engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp


diff --git a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
index fb9e53e7f31..c115293fd05 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
@@ -329,9 +329,6 @@ bool BaseRenderOpenGL3D::drawSpriteEx(BaseSurface *tex, const Wintermute::Rect32
 	float texRight = (float)rect.right / (float)texWidth;
 	float texBottom = (float)rect.bottom / (float)texHeight;
 
-	float offset = _height / 2.0f;
-	float correctedYPos = (pos.y - offset) * -1.0f + offset;
-
 	if (mirrorX) {
 		SWAP(texLeft, texRight);
 	}




More information about the Scummvm-git-logs mailing list