diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 19:22:05 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 19:22:05 +0300 |
| commit | 01e1c61e9fcf4a0b0164a7fe5395a209a50f6905 (patch) | |
| tree | 1f1eb33e49eab338650a42e8f602af75d8d28a24 /src/osc/dispatch.c | |
| parent | 2d02d39d2cd32e9eb559638865d2746f02c08556 (diff) | |
Optimize hot loops with direct access, LUTs, and closed-form formulas
Diffstat (limited to 'src/osc/dispatch.c')
| -rw-r--r-- | src/osc/dispatch.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
