You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a rounding error in BorderSetView that causes the calculated screen size off by one for 640x400 when the full screen sizes (with the minimal or no hud) are used. This line calculates 401 for y2 instead of 400 which causes a crash: https://github.com/jonof/jfsw/blob/master/src/border.c#L441
Clamping could be added after it to work around the problem, e.g. if (y2 > ydim) y2 = ydim;
The text was updated successfully, but these errors were encountered:
There is a rounding error in BorderSetView that causes the calculated screen size off by one for 640x400 when the full screen sizes (with the minimal or no hud) are used. This line calculates 401 for y2 instead of 400 which causes a crash:
https://github.com/jonof/jfsw/blob/master/src/border.c#L441
Clamping could be added after it to work around the problem, e.g.
if (y2 > ydim) y2 = ydim;
The text was updated successfully, but these errors were encountered: