fix: foreground color alpha calculation

This commit is contained in:
CJ van den Berg 2024-12-12 21:19:35 +01:00
parent af68c397bc
commit fd648b7b07
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -358,7 +358,7 @@ pub inline fn reverse_style(self: *Plane) void {
} }
pub inline fn set_style(self: *Plane, style_: Style) void { pub inline fn set_style(self: *Plane, style_: Style) void {
if (style_.fg) |col| self.style.fg = apply_alpha(self.style_base.fg, col); if (style_.fg) |col| self.style.fg = apply_alpha(self.style_base.bg, col);
if (style_.bg) |col| self.style.bg = apply_alpha(self.style_base.bg, col); if (style_.bg) |col| self.style.bg = apply_alpha(self.style_base.bg, col);
if (style_.fs) |fs| set_font_style(&self.style, fs); if (style_.fs) |fs| set_font_style(&self.style, fs);
self.transparent = false; self.transparent = false;