refactor: remove unused parameter in set_base_style

This commit is contained in:
CJ van den Berg 2024-11-04 22:17:08 +01:00
parent 0a43fa853f
commit cfb9f8cf11
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
25 changed files with 28 additions and 28 deletions

View file

@ -293,7 +293,7 @@ pub fn set_bg_palindex(self: *Plane, idx: c_uint) !void {
self.style.bg = .{ .index = @intCast(idx) };
}
pub inline fn set_base_style(self: *Plane, _: [*c]const u8, style_: Style) void {
pub inline fn set_base_style(self: *Plane, style_: Style) void {
self.style_base.fg = if (style_.fg) |col| to_cell_color(col) else .default;
self.style_base.bg = if (style_.bg) |col| to_cell_color(col) else .default;
if (style_.fs) |fs| set_font_style(&self.style, fs);