From 92cfdcb6b8f1eaa5c875693a1ae9e3bd6a9b6f9a Mon Sep 17 00:00:00 2001 From: Blendi-Goose <87442375+Blendi-Goose@users.noreply.github.com> Date: Sun, 29 Jun 2025 17:41:28 +0200 Subject: [PATCH] pretty minor code changes --- src/emulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/emulator.c b/src/emulator.c index 680717a..511456d 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -645,13 +645,12 @@ render: for(size_t x = 0; x < scrW; x++) { for(size_t y = 0; y < scrH; y++) { nn_scrchr_t p = nn_getPixel(s, x, y); - int l; - const char *s = CodepointToUTF8(p.codepoint, &l); + // fuck palettes Color fgColor = ne_processColor(p.fg); Color bgColor = ne_processColor(p.bg); DrawRectangle(x * pixelWidth, y * pixelHeight, pixelWidth, pixelHeight, bgColor); - DrawTextEx(unscii, s, (Vector2) {x * pixelWidth, y * pixelHeight}, pixelHeight - 5, spacing, fgColor); + DrawTextCodepoint(unscii, p.codepoint, (Vector2) {x * pixelWidth, y * pixelHeight}, pixelHeight - 5, fgColor); } }