diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-23 14:07:29 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-23 14:07:29 +0200 |
commit | 2b38d2d62391428a7fa40f268a4e65f876dd0e75 (patch) | |
tree | efae26394069301a114c1033798cf1308ccc9b6c /src/main/java/io/polyfrost/oneconfig/lwjgl | |
parent | b161692ce6a93100ea882061dd9838b2f019d208 (diff) | |
download | OneConfig-2b38d2d62391428a7fa40f268a4e65f876dd0e75.tar.gz OneConfig-2b38d2d62391428a7fa40f268a4e65f876dd0e75.tar.bz2 OneConfig-2b38d2d62391428a7fa40f268a4e65f876dd0e75.zip |
fix blurry rendering when using mc gui scale + nanovg
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/lwjgl')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java index 55d9fdd..e0a85c7 100644 --- a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java +++ b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java @@ -53,7 +53,7 @@ public final class RenderManager { if (mcScaling) { ScaledResolution resolution = new ScaledResolution(Minecraft.getMinecraft()); - nvgBeginFrame(vg, (float) resolution.getScaledWidth_double(), (float) resolution.getScaledHeight_double(), 1); + nvgBeginFrame(vg, (float) resolution.getScaledWidth_double(), (float) resolution.getScaledHeight_double(), resolution.getScaleFactor()); } else { nvgBeginFrame(vg, Display.getWidth(), Display.getHeight(), 1); } |