mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/Graphics2D: Remove min w/h on Rect2D
This commit is contained in:
@@ -976,7 +976,7 @@ U0 HGradientRect2D(Context2D* ctx, I64 x, I64 y, I64 w, I64 h, U32 from,
|
|||||||
U0 Rect2D(Context2D* ctx, I64 x, I64 y, I64 w, I64 h,
|
U0 Rect2D(Context2D* ctx, I64 x, I64 y, I64 w, I64 h,
|
||||||
U32 color)
|
U32 color)
|
||||||
{ // Draw a rectangle fill.
|
{ // Draw a rectangle fill.
|
||||||
Context2D* tmpctx = NewContext2D(Max(4, w), Max(4, h));
|
Context2D* tmpctx = NewContext2D(w, h);
|
||||||
Fill2D(tmpctx, color);
|
Fill2D(tmpctx, color);
|
||||||
CopyRect2D(ctx, x, y, tmpctx);
|
CopyRect2D(ctx, x, y, tmpctx);
|
||||||
DelContext2D(tmpctx);
|
DelContext2D(tmpctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user