[Scummvm-git-logs] scummvm master -> 3aa69353f9988be6efbf0b22bb1c65271fc798eb

aquadran noreply at scummvm.org
Sat Jul 16 15:31:43 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:
3aa69353f9 WINTERMUTE: WME3D: Fixed cordinates for drawLine


Commit: 3aa69353f9988be6efbf0b22bb1c65271fc798eb
    https://github.com/scummvm/scummvm/commit/3aa69353f9988be6efbf0b22bb1c65271fc798eb
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-07-16T17:31:39+02:00

Commit Message:
WINTERMUTE: WME3D: Fixed cordinates for drawLine

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 c3c6c7af674..34127d605c2 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d_shader.cpp
@@ -404,9 +404,9 @@ bool BaseRenderOpenGL3DShader::drawLine(int x1, int y1, int x2, int y2, uint32 c
 	float lineCoords[4];
 
 	lineCoords[0] = x1;
-	lineCoords[1] = y1;
+	lineCoords[1] = _height - y1;
 	lineCoords[2] = x2;
-	lineCoords[3] = y2;
+	lineCoords[3] = _height - y2;
 
 	glBufferSubData(GL_ARRAY_BUFFER, 0, 2 * 8, lineCoords);
 




More information about the Scummvm-git-logs mailing list