mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
Everywhere: Use ctx->fill()
This commit is contained in:
@@ -194,7 +194,7 @@ U0 @compositor_set_wallpaper(Context2D* ctx, U32 mode, U32 background)
|
||||
switch (mode) {
|
||||
case CPZ_WALLPAPER_CENTERED:
|
||||
tmp = NewContext2D(Display.Width(), Display.Height());
|
||||
Fill2D(tmp, background);
|
||||
tmp->fill(background);
|
||||
CopyRect2D(tmp,
|
||||
(Display.Width() / 2) - (ctx->width / 2),
|
||||
(Display.Height() / 2) - (ctx->height / 2),
|
||||
|
||||
@@ -20,7 +20,7 @@ U0 @systemtray_register_item(I64 addr)
|
||||
Context2DWidget* item = Gui.CreateWidget(
|
||||
Compositor.menubar.win, WIDGET_TYPE_CONTEXT2D, -24, 0, 24, 24);
|
||||
item->ctx = NewContext2D(item->width, item->height);
|
||||
Fill2D(item->ctx, Color(0, 0, 0, 0));
|
||||
item->ctx->fill(0);
|
||||
MemSetI64(addr, item, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user