[Scummvm-git-logs] scummvm wme_artofmurder -> 28c7d7e6c500a3e25cc5843adb0b3dacfe9c7899

lolbot-iichan noreply at scummvm.org
Sun Apr 3 10:49:37 UTC 2022


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:
28c7d7e6c5 WINTERMUTE: Remove halfpixel offset in OpenGL+Shaders


Commit: 28c7d7e6c500a3e25cc5843adb0b3dacfe9c7899
    https://github.com/scummvm/scummvm/commit/28c7d7e6c500a3e25cc5843adb0b3dacfe9c7899
Author: lb_ii (lolbot_iichan at mail.ru)
Date: 2022-04-03T13:47:07+03:00

Commit Message:
WINTERMUTE: Remove halfpixel offset in OpenGL+Shaders

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


diff --git a/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp b/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp
index 707156da0a2..c9bc5c0fac7 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp
@@ -743,17 +743,17 @@ bool BaseRenderOpenGL3DShader::drawSpriteEx(BaseSurfaceOpenGL3D &tex, const Wint
 	vertices[3].v = texBottom;
 
 	// position coords
-	vertices[0].x = pos.x - 0.5f;
-	vertices[0].y = correctedYPos - 0.5f;
+	vertices[0].x = pos.x;
+	vertices[0].y = correctedYPos;
 
-	vertices[1].x = pos.x - 0.5f;
-	vertices[1].y = correctedYPos - height - 0.5f;
+	vertices[1].x = pos.x;
+	vertices[1].y = correctedYPos - height;
 
-	vertices[2].x = pos.x + width - 0.5f;
-	vertices[2].y = correctedYPos - 0.5f;
+	vertices[2].x = pos.x + width;
+	vertices[2].y = correctedYPos;
 
-	vertices[3].x = pos.x + width - 0.5f;
-	vertices[3].y = correctedYPos - height - 0.5;
+	vertices[3].x = pos.x + width;
+	vertices[3].y = correctedYPos - height;
 
 	// not exactly sure about the color format, but this seems to work
 	byte a = RGBCOLGetA(color);




More information about the Scummvm-git-logs mailing list