Fixed an off-by-one when turning the GLWindow on

This commit is contained in:
Sollace 2018-10-20 12:23:28 +02:00
parent 7e78804157
commit 6feb20a331

View file

@ -66,7 +66,7 @@ public class GLWindow extends DropTarget {
} }
private static int getScaledPixelUnit(int i) { private static int getScaledPixelUnit(int i) {
return Math.max((int)Math.floor(i * Display.getPixelScaleFactor()), 0); return Math.max((int)Math.round(i * Display.getPixelScaleFactor()), 0);
} }
private final Minecraft mc = Minecraft.getMinecraft(); private final Minecraft mc = Minecraft.getMinecraft();