From 6feb20a331332bc8d0ff80b3631adf24909b655d Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Oct 2018 12:23:28 +0200 Subject: [PATCH] Fixed an off-by-one when turning the GLWindow on --- src/hdskins/java/com/voxelmodpack/hdskins/upload/GLWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/upload/GLWindow.java b/src/hdskins/java/com/voxelmodpack/hdskins/upload/GLWindow.java index 59d7b1bb..32cd28a5 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/upload/GLWindow.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/upload/GLWindow.java @@ -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();