mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
fix crash in underline drawing math
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user