From 1be07aff663c36318dfb6dbedf32d5f0bd0b54d8 Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Fri, 2 May 2025 15:55:58 -0400 Subject: [PATCH] System/Libraries/Graphics2D: Actually use min_x clipped value :^) --- System/Libraries/Graphics2D.HC | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Libraries/Graphics2D.HC b/System/Libraries/Graphics2D.HC index 4c4302d..0aa9240 100644 --- a/System/Libraries/Graphics2D.HC +++ b/System/Libraries/Graphics2D.HC @@ -738,7 +738,7 @@ U0 HLine2D(Context2D* ctx, I64 x, I64 y, I64 x2, if (width == 1) { Plot2D(ctx, x, y, color); } else { - MemSetU32(ctx->fb + (y * ctx->width) + x, color, width); + MemSetU32(ctx->fb + (y * ctx->width) + min_x, color, width); } }