From 28bbd526f2a40d761b04c21e0db26a1ad43cfddc Mon Sep 17 00:00:00 2001 From: XiaoYan Li Date: Sat, 28 Dec 2024 03:43:31 +0800 Subject: [PATCH] Fix the typing error when building on Linux Co-authored-by: Gareth Widlansky <101901964+gerblesh@users.noreply.github.com> --- src/renderer/OpenGL.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig index 0fe5538eb..1456ed3bb 100644 --- a/src/renderer/OpenGL.zig +++ b/src/renderer/OpenGL.zig @@ -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);