Skip to content

Commit

Permalink
Fix the typing error when building on Linux
Browse files Browse the repository at this point in the history
Co-authored-by: Gareth Widlansky <[email protected]>
  • Loading branch information
2 people authored and mitchellh committed Dec 29, 2024
1 parent 2993d12 commit 28bbd52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/OpenGL.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28bbd52

Please sign in to comment.