mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/Graphics2D: Actually use min_x clipped value :^)
This commit is contained in:
@@ -738,7 +738,7 @@ U0 HLine2D(Context2D* ctx, I64 x, I64 y, I64 x2,
|
|||||||
if (width == 1) {
|
if (width == 1) {
|
||||||
Plot2D(ctx, x, y, color);
|
Plot2D(ctx, x, y, color);
|
||||||
} else {
|
} else {
|
||||||
MemSetU32(ctx->fb + (y * ctx->width) + x, color, width);
|
MemSetU32(ctx->fb + (y * ctx->width) + min_x, color, width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user