Fix segmentation fault when using color mix after auth

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2025-03-06 14:31:11 +01:00
parent 973d8fe120
commit f013af0dde
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -71,12 +71,7 @@ pub fn draw(self: *ColorMix) void {
}
const cell = self.palette[@as(usize, @intFromFloat(math.floor(length(uv) * 5.0))) % palette_len];
const screen_index: usize = y * self.terminal_buffer.width + x;
self.terminal_buffer.buffer[screen_index] = .{
.ch = cell.ch,
.fg = cell.fg,
.bg = cell.bg,
};
utils.putCell(x, y, cell);
}
}
}