Fix the typing error when building on Linux

Co-authored-by: Gareth Widlansky <101901964+gerblesh@users.noreply.github.com>
This commit is contained in:
XiaoYan Li
2024-12-28 03:43:31 +08:00
committed by Mitchell Hashimoto
parent 2993d12de7
commit 28bbd526f2

View File

@ -2344,9 +2344,9 @@ fn drawCellProgram(
// Clear the surface
gl.clearColor(
@as(f32, @floatFromInt(self.draw_background.r)) / 255 * self.config.background_opacity,
@as(f32, @floatFromInt(self.draw_background.g)) / 255 * self.config.background_opacity,
@as(f32, @floatFromInt(self.draw_background.b)) / 255 * self.config.background_opacity,
@floatCast(@as(f32, @floatFromInt(self.draw_background.r)) / 255 * self.config.background_opacity),
@floatCast(@as(f32, @floatFromInt(self.draw_background.g)) / 255 * self.config.background_opacity),
@floatCast(@as(f32, @floatFromInt(self.draw_background.b)) / 255 * self.config.background_opacity),
@floatCast(self.config.background_opacity),
);
gl.clear(gl.c.GL_COLOR_BUFFER_BIT);