aboutsummaryrefslogtreecommitdiff
path: root/apps/wm/wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wm/wm.c')
-rw-r--r--apps/wm/wm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/wm/wm.c b/apps/wm/wm.c
index 9af1ede..b248bc2 100644
--- a/apps/wm/wm.c
+++ b/apps/wm/wm.c
@@ -494,7 +494,7 @@ int main(int argc, char **argv)
atexit(handle_exit);
- assert(ioctl("/dev/fb", 0, &screen) == 0);
+ assert(io_control(IO_FRAMEBUFFER, 0, &screen) == EOK);
log("WM loaded: %dx%d\n", screen.width, screen.height);
wm_client = (struct client){ .pid = getpid() };
bypp = (screen.bpp >> 3);