diff --git a/src/font/sprite/Box.zig b/src/font/sprite/Box.zig index 01576eabf..6a8a49662 100644 --- a/src/font/sprite/Box.zig +++ b/src/font/sprite/Box.zig @@ -2127,8 +2127,8 @@ fn draw_light_arc( const float_width: f64 = @floatFromInt(self.width); const float_height: f64 = @floatFromInt(self.height); const float_thick: f64 = @floatFromInt(thick_px); - const center_x: f64 = @floatFromInt(self.width / 2 + self.width % 2); - const center_y: f64 = @floatFromInt(self.height / 2 + self.height % 2); + const center_x: f64 = @as(f64, @floatFromInt((self.width -| thick_px) / 2)) + float_thick / 2; + const center_y: f64 = @as(f64, @floatFromInt((self.height -| thick_px) / 2)) + float_thick / 2; const r = @min(float_width, float_height) / 2; diff --git a/src/font/sprite/testdata/Box.ppm b/src/font/sprite/testdata/Box.ppm index fecf466d0..29ae539e7 100644 Binary files a/src/font/sprite/testdata/Box.ppm and b/src/font/sprite/testdata/Box.ppm differ