aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/lwjgl
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-05 17:38:44 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-05 17:38:44 +0100
commit5c7f1f9e2613b0ca5efac351e2c5e15c9deb0069 (patch)
treef68ad16f2f6b46c7b9ed8f14d1331fd357a01fbf /src/main/java/cc/polyfrost/oneconfig/lwjgl
parent77f8b7924ad61ebb8334d37a0a2ae2c8a297b400 (diff)
downloadOneConfig-5c7f1f9e2613b0ca5efac351e2c5e15c9deb0069.tar.gz
OneConfig-5c7f1f9e2613b0ca5efac351e2c5e15c9deb0069.tar.bz2
OneConfig-5c7f1f9e2613b0ca5efac351e2c5e15c9deb0069.zip
scrolling
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/lwjgl')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
index 0ad1748..9af7122 100644
--- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
+++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
@@ -92,7 +92,7 @@ public final class RenderManager {
nvgRect(vg, x, y, width, height);
NVGColor nvgColor = color(vg, color);
NVGColor nvgColor2 = color(vg, color2);
- nvgFillPaint(vg, nvgLinearGradient(vg, x, y + height, x + width, y, nvgColor, nvgColor2, bg));
+ nvgFillPaint(vg, nvgLinearGradient(vg, x + height, y + height, x + height, y, nvgColor, nvgColor2, bg));
nvgFillPaint(vg, bg);
nvgFill(vg);
nvgColor.free();
@@ -162,7 +162,7 @@ public final class RenderManager {
nvgFontSize(vg, size);
nvgFontFace(vg, font.font.getName());
nvgTextAlign(vg, NVG_ALIGN_LEFT | NVG_ALIGN_TOP);
- nvgTextLineHeight(vg, lineHeight);
+ nvgTextMetrics(vg, new float[]{10f}, new float[]{10f}, new float[]{lineHeight});
NVGColor nvgColor = color(vg, color);
nvgText(vg, x, y, text);
nvgFill(vg);