Everywhere: Use ctx->fill_rect

This commit is contained in:
Alec Murphy 2025-03-25 14:12:03 -04:00
parent 6db56f5283
commit f52420b7b2
2 changed files with 17 additions and 16 deletions

View file

@ -8,12 +8,13 @@ CopyRect2D(clipmanager_icon->ctx, 0, 0, ctx_clip_icon);
U0 Main()
{
Context2D* ctx = clipmanager_icon->ctx;
I64 length = 0;
I64 text_width = 0;
while (1) {
if (length < Clipboard.Length()) {
CopyRect2D(clipmanager_icon->ctx, 0, 0, ctx_clip_icon);
Rect2D(clipmanager_icon->ctx, 12, 12, 12, 12, Color(255, 0, 0));
ctx->fill_rect(12, 12, 12, 12, Color(255, 0, 0));
text_width = Print2D(NULL, Compositor.theme.font.sans, 0, 0,
Color(255, 255, 255), , "%02d", Clipboard.Length());
Print2D(clipmanager_icon->ctx, Compositor.theme.font.sans,