mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
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.
This commit is contained in:
parent
0e6c19ffa6
commit
bb28c31531
Notes:
sideshowbarker
2024-07-19 16:04:41 +09:00
Author: https://github.com/awesomekling
Commit: bb28c31531
10 changed files with 18 additions and 80 deletions
|
@ -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");
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue