From f0211a8ab00d0ff9690e5ffc1ee4fcd0184708f8 Mon Sep 17 00:00:00 2001 From: ImToggle <98242902+ImToggle@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:51:38 +0800 Subject: [PATCH] without nanovg --- .../org/polyfrost/chatting/chat/ChatWindow.kt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/org/polyfrost/chatting/chat/ChatWindow.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatWindow.kt index 1b8d93a..48fd709 100644 --- a/src/main/kotlin/org/polyfrost/chatting/chat/ChatWindow.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatWindow.kt @@ -158,17 +158,14 @@ class ChatWindow : BasicHud(true, 2f, 1080 - 27f - 45f - 12f, override fun draw(matrices: UMatrixStack?, x: Float, y: Float, scale: Float, example: Boolean) { if (!example) return - nanoVG(true){ - GL.pushMatrix() - GL.translate(x, y + scale, 0f) - GL.scale(scale, scale, 1f) - for (chat in exampleList) { - ModCompatHooks.redirectDrawString(chat.chatComponent.formattedText, 0f, 0f, -1, chat, false) - GL.translate(0f, 9f, 0f) - } - GL.popMatrix() + GL.pushMatrix() + GL.translate(x, y + scale, 0f) + GL.scale(scale, scale, 1f) + for (chat in exampleList) { + ModCompatHooks.redirectDrawString(chat.chatComponent.formattedText, 0f, 0f, -1, chat, false) + GL.translate(0f, 9f, 0f) } - + GL.popMatrix() } override fun drawBackground(x: Float, y: Float, width: Float, height: Float, scale: Float) {