font/sprite: remove comptime arg for box drawing

This commit is contained in:
Mitchell Hashimoto
2024-04-02 08:38:36 -07:00
parent 5abc63193e
commit 555f6e159f

View File

@ -2425,7 +2425,7 @@ fn draw_light_arc(
fn draw_dash_horizontal(
self: Box,
canvas: *font.sprite.Canvas,
comptime count: u8,
count: u8,
thick_px: u32,
desired_gap: u32,
) void {
@ -2481,7 +2481,7 @@ fn draw_dash_horizontal(
// more visually obvious.
var extra: u32 = remaining;
inline for (0..count) |_| {
for (0..count) |_| {
var x1 = x + dash_width;
// We distribute left-over size in to dash widths,
// since it's less obvious there than in the gaps.