[Scummvm-git-logs] scummvm master -> 3512ffde0dc7653b4e8131bc6b492d7e19329769
lolbot-iichan
noreply at scummvm.org
Sun Apr 3 18:26:45 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:
3512ffde0d WINTERMUTE: Remove halfpixel offset in OpenGL+Shaders
Commit: 3512ffde0dc7653b4e8131bc6b492d7e19329769
https://github.com/scummvm/scummvm/commit/3512ffde0dc7653b4e8131bc6b492d7e19329769
Author: lb_ii (lolbot_iichan at mail.ru)
Date: 2022-04-03T21:26:39+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