diff --git a/src/font/sprite/underline.zig b/src/font/sprite/underline.zig index 55a29d80c..163a8fb78 100644 --- a/src/font/sprite/underline.zig +++ b/src/font/sprite/underline.zig @@ -80,7 +80,7 @@ const Draw = struct { // Ensure we never overflow out of bounds on the canvas const y_max = self.height -| 1; const bottom = @min(self.pos + self.thickness, y_max); - const y = @as(i32, @intCast(bottom - self.thickness)); + const y = @as(i32, @intCast(bottom)) - @as(i32, @intCast(self.thickness)); canvas.rect(.{ .x = 0,