mirror of https://github.com/fairyglade/ly.git
Fix segmentation fault when using color mix after auth
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
973d8fe120
commit
f013af0dde
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue