mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
Everywhere: Use ctx->fill_rect
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user