Allow display modes with 59 Hz refresh rate to be acceptable as 60 Hz

This commit is contained in:
shadowislord 2015-02-01 17:15:36 -05:00
parent ef9c86bd24
commit 74dc3392c6

View File

@ -57,7 +57,7 @@ public class LwjglDisplay extends LwjglAbstractDisplay {
if (mode.getWidth() == width
&& mode.getHeight() == height
&& (mode.getBitsPerPixel() == bpp || (bpp == 24 && mode.getBitsPerPixel() == 32))
&& mode.getFrequency() == freq){
&& (mode.getFrequency() == freq || (freq == 60 && mode.getFrequency() == 59))) {
return mode;
}
}