Skip to content

Commit ecbf88e

Browse files
committed
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 c243789.
1 parent 42456ee commit ecbf88e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_display/gl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void main(void) {
196196
197197
// interpolate (0,1) texcoords to [0,719]
198198
int texcoordDenormX;
199-
texcoordDenormX = int(round(gl_TexCoord[0].x * imageWidth - .4999));
199+
texcoordDenormX = int(round(gl_TexCoord[0].x * imageWidth - .5));
200200
201201
// 0 1 1 2 3 3 4 5 5 6 7 7 etc.
202202
int yOffset;

0 commit comments

Comments
 (0)