aboutsummaryrefslogtreecommitdiff
path: root/apps/wm
diff options
context:
space:
mode:
authorMarvin Borner2021-04-29 23:59:48 +0200
committerMarvin Borner2021-04-29 23:59:48 +0200
commit3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c (patch)
treed837ed9ed9470a20b66b28b6083d30865d7e6016 /apps/wm
parentf8e47b6b0c0578c52d82c0e243620361b87a4abe (diff)
Alright!
Diffstat (limited to 'apps/wm')
-rw-r--r--apps/wm/wm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/wm/wm.c b/apps/wm/wm.c
index 3d8fb33..237026d 100644
--- a/apps/wm/wm.c
+++ b/apps/wm/wm.c
@@ -565,7 +565,7 @@ int main(int argc, char **argv)
atexit(handle_exit);
- assert(io_control(IO_FRAMEBUFFER, IOCTL_FB_GET, &screen) == EOK);
+ assert(io_control(IO_FRAMEBUFFER, IOCTL_FB_GET, &screen, sizeof(screen)) == EOK);
log("WM loaded: %dx%d\n", screen.width, screen.height);
wm_client = (struct client){ .conn = 0 };
bypp = (screen.bpp >> 3);
@@ -583,6 +583,8 @@ int main(int argc, char **argv)
WF_NO_DRAG | WF_NO_FOCUS | WF_NO_RESIZE | WF_ALPHA);
/* gfx_write(&direct->ctx, vec2(0, 0), FONT_32, COLOR_FG, "Loading Melvix..."); */
+ while (1)
+ ;
gfx_load_wallpaper(&wallpaper->ctx, "/res/wall.png");
memset(cursor->ctx.fb, 0, cursor->ctx.bytes);
gfx_load_wallpaper(&cursor->ctx, "/res/cursor.png");