Переход на i32

This commit is contained in:
2026-03-03 15:26:01 +03:00
parent 7aa9673b44
commit 5b1b3a8c5e
3 changed files with 22 additions and 20 deletions

View File

@@ -162,9 +162,8 @@ fn drawLineInBuffer(ctx: *DrawContext, bx0: i32, by0: i32, bx1: i32, by1: i32, c
while (thick <= half_thickness) {
const x = if (use_vertical) x0 + thick else x0;
const y = if (use_vertical) y0 else y0 + thick;
if (x >= 0 and y >= 0) {
ctx.blendPixelAtBuffer(@intCast(x), @intCast(y), color);
}
ctx.blendPixelAtBuffer(x, y, color);
thick += 1;
}