aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java
index 1b6123e..3377f19 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java
@@ -7,6 +7,8 @@ import io.polyfrost.oneconfig.gui.elements.TextInputField;
import io.polyfrost.oneconfig.gui.pages.HomePage;
import io.polyfrost.oneconfig.gui.pages.Page;
import io.polyfrost.oneconfig.lwjgl.RenderManager;
+import io.polyfrost.oneconfig.lwjgl.Scissor;
+import io.polyfrost.oneconfig.lwjgl.ScissorManager;
import io.polyfrost.oneconfig.lwjgl.font.Fonts;
import io.polyfrost.oneconfig.lwjgl.image.Images;
import io.polyfrost.oneconfig.utils.InputUtils;
@@ -115,7 +117,7 @@ public class OneConfigGui extends GuiScreen {
}
}
- nvgScissor(vg, x + 224, y + 72, 1056, 728);
+ Scissor scissor = ScissorManager.scissor(vg, x + 224, y + 72, 1056, 728);
if (prevPage != null) {
pageProgress = MathUtils.easeInOutCirc(50, pageProgress, 832 - pageProgress, 220);
prevPage.draw(vg, (int) (x - pageProgress), y + 72);
@@ -128,7 +130,7 @@ public class OneConfigGui extends GuiScreen {
} else {
currentPage.draw(vg, (int) (x - pageProgress), y + 72);
}
- nvgResetScissor(vg);
+ ScissorManager.resetScissor(vg, scissor);
if (currentColorSelector != null) {
currentColorSelector.draw(vg);
}