From 01e1c61e9fcf4a0b0164a7fe5395a209a50f6905 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 19:22:05 +0300 Subject: Optimize hot loops with direct access, LUTs, and closed-form formulas --- src/osc/dispatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/osc/dispatch.c') diff --git a/src/osc/dispatch.c b/src/osc/dispatch.c index 4cf986e..74863ed 100644 --- a/src/osc/dispatch.c +++ b/src/osc/dispatch.c @@ -135,8 +135,7 @@ static void osc4_handle(struct term *t, const char *params) static void osc104_handle(struct term *t, const char *params) { if (!*params) { - for (int i = 0; i < 256; i++) - term_palette_reset(&t->palette, i); + term_palette_reset_all(&t->palette); return; } const char *p = params; -- cgit v1.2.3