mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
font/sprite: remove comptime arg for box drawing
This commit is contained in:
@ -2425,7 +2425,7 @@ fn draw_light_arc(
|
|||||||
fn draw_dash_horizontal(
|
fn draw_dash_horizontal(
|
||||||
self: Box,
|
self: Box,
|
||||||
canvas: *font.sprite.Canvas,
|
canvas: *font.sprite.Canvas,
|
||||||
comptime count: u8,
|
count: u8,
|
||||||
thick_px: u32,
|
thick_px: u32,
|
||||||
desired_gap: u32,
|
desired_gap: u32,
|
||||||
) void {
|
) void {
|
||||||
@ -2481,7 +2481,7 @@ fn draw_dash_horizontal(
|
|||||||
// more visually obvious.
|
// more visually obvious.
|
||||||
var extra: u32 = remaining;
|
var extra: u32 = remaining;
|
||||||
|
|
||||||
inline for (0..count) |_| {
|
for (0..count) |_| {
|
||||||
var x1 = x + dash_width;
|
var x1 = x + dash_width;
|
||||||
// We distribute left-over size in to dash widths,
|
// We distribute left-over size in to dash widths,
|
||||||
// since it's less obvious there than in the gaps.
|
// since it's less obvious there than in the gaps.
|
||||||
|
Reference in New Issue
Block a user