Skip to content

Commit

Permalink
Revert "GL: fixed irregular sized v210 display"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Nov 15, 2023
1 parent 691cb0f commit bcb1500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_display/gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,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;
Expand Down

0 comments on commit bcb1500

Please sign in to comment.