diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 21:46:15 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 21:46:15 +0100 |
commit | 46181cf023045ad346aabc760dafaecc93965d33 (patch) | |
tree | 1af7969b1a0c877651261021c3d967548f1efeef /Kernel/WindowServer.cpp | |
parent | 52c004eb53d5c80245dbc2edcb400dc77dc8a797 (diff) | |
download | serenity-46181cf023045ad346aabc760dafaecc93965d33.zip |
Oops, finish WindowServer rename.
Diffstat (limited to 'Kernel/WindowServer.cpp')
-rw-r--r-- | Kernel/WindowServer.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Kernel/WindowServer.cpp b/Kernel/WindowServer.cpp new file mode 100644 index 0000000000..674562ad7f --- /dev/null +++ b/Kernel/WindowServer.cpp @@ -0,0 +1,22 @@ +#include "Process.h" +#include <Widgets/Font.h> +#include <Widgets/FrameBuffer.h> +#include <Widgets/WindowManager.h> +#include <Widgets/EventLoop.h> +#include <Widgets/Window.h> + +void WindowServer_main() +{ + auto info = current->get_display_info(); + + dbgprintf("Screen is %ux%ux%ubpp\n", info.width, info.height, info.bpp); + + FrameBuffer framebuffer((dword*)info.framebuffer, info.width, info.height); + + WindowManager::the(); + + dbgprintf("Entering WindowServer main loop.\n"); + EventLoop::main().exec(); + + ASSERT_NOT_REACHED(); +} |