mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 14:27:59 +01:00
Fixed an off-by-one when turning the GLWindow on
This commit is contained in:
parent
7e78804157
commit
6feb20a331
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class GLWindow extends DropTarget {
|
|||
}
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue