Переход на i32
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user