From ecbf88eda7010ffa1507dab3db87624226cfa2fa Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 15 Nov 2023 08:19:06 +0100 Subject: [PATCH] Revert "GL: fixed irregular sized v210 display" since previous commit, it should not be needed It seems now the problem (solved by the previous commit) was possibly caused by different rounding modes of int() cast (Windows having FE_UPWARD?). This reverts commit c2437894fa899047c7ef5da7c88cfb0358f576e4. --- src/video_display/gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_display/gl.cpp b/src/video_display/gl.cpp index 185609f99..528a7748f 100644 --- a/src/video_display/gl.cpp +++ b/src/video_display/gl.cpp @@ -196,7 +196,7 @@ void main(void) { // interpolate (0,1) texcoords to [0,719] int texcoordDenormX; - texcoordDenormX = int(round(gl_TexCoord[0].x * imageWidth - .4999)); + texcoordDenormX = int(round(gl_TexCoord[0].x * imageWidth - .5)); // 0 1 1 2 3 3 4 5 5 6 7 7 etc. int yOffset;