From e299638f8bd07114e10b19ee844e749255143b9f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 10 Apr 2026 22:03:09 +0200 Subject: [PATCH] fix(gui): handle reverse style bit --- src/gui/wio/app.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/wio/app.zig b/src/gui/wio/app.zig index 3fbead22..5bccc85a 100644 --- a/src/gui/wio/app.zig +++ b/src/gui/wio/app.zig @@ -145,8 +145,8 @@ pub fn updateScreen( for (vx_screen.buf[0..cell_count], new_cells, new_codepoints, new_widths) |*vc, *gc, *cp, *wt| { gc.* = .{ .glyph_index = 0, - .background = colorFromVaxis(vc.style.bg), - .foreground = colorFromVaxis(vc.style.fg), + .background = colorFromVaxis(if (vc.style.reverse) vc.style.fg else vc.style.bg), + .foreground = colorFromVaxis(if (vc.style.reverse) vc.style.bg else vc.style.fg), }; // Decode first codepoint from the grapheme cluster. const g = vc.char.grapheme;