diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 03:42:50 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 03:42:50 +0100 |
commit | bb28c315311da4e3e5224505c79ba41297813004 (patch) | |
tree | dee3b3edefe5a5277f0b908f039b496421f46566 /Kernel | |
parent | 0e6c19ffa6901fd570cdfb5302f6e28f3c1366d3 (diff) | |
download | serenity-bb28c315311da4e3e5224505c79ba41297813004.zip |
Get rid of the "root widget" concept in WindowManager.
Instead just create a GraphicsBitmap wrapper around the display framebuffer
and teach Painter how to draw directly into a GraphicsBitmap.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Makefile | 1 | ||||
-rw-r--r-- | Kernel/WindowComposer.cpp | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile index 6d35faf34d..ac6ce72827 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -55,7 +55,6 @@ WIDGETS_OBJS = \ ../Widgets/Color.o \ ../Widgets/CharacterBitmap.o \ ../Widgets/EventLoop.o \ - ../Widgets/RootWidget.o \ ../Widgets/Label.o \ ../Widgets/Button.o \ ../Widgets/MsgBox.o \ diff --git a/Kernel/WindowComposer.cpp b/Kernel/WindowComposer.cpp index 7a883d6dc9..683a8418d1 100644 --- a/Kernel/WindowComposer.cpp +++ b/Kernel/WindowComposer.cpp @@ -3,7 +3,6 @@ #include <Widgets/Font.h> #include <Widgets/FrameBuffer.h> #include <Widgets/WindowManager.h> -#include <Widgets/RootWidget.h> #include <Widgets/EventLoop.h> #include <Widgets/MsgBox.h> #include <Widgets/TextBox.h> @@ -26,11 +25,8 @@ void WindowComposer_main() dbgprintf("Screen is %ux%ux%ubpp\n", info.width, info.height, info.bpp); FrameBuffer framebuffer((dword*)info.framebuffer, info.width, info.height); - RootWidget rw; EventLoop loop; - WindowManager::the().setRootWidget(&rw); - MsgBox(nullptr, "Serenity Operating System"); { |