mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
f6d2c3ed87
Okay things kinda sorta work. Both Bochs and QEMU now boot into GUI mode. There's a ton of stuff that doesn't make sense and so many things to rework. Still it's quite cool to have made it this far. :^)
33 lines
824 B
C++
33 lines
824 B
C++
#include "WindowComposer.h"
|
|
#include "Process.h"
|
|
#include <Widgets/Font.h>
|
|
#include <Widgets/FrameBuffer.h>
|
|
#include <Widgets/WindowManager.h>
|
|
#include <Widgets/RootWidget.h>
|
|
#include <Widgets/EventLoop.h>
|
|
#include <Widgets/MsgBox.h>
|
|
|
|
void WindowComposer_main()
|
|
{
|
|
Font::initialize();
|
|
FrameBuffer::initialize();
|
|
EventLoop::initialize();
|
|
WindowManager::initialize();
|
|
|
|
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);
|
|
RootWidget rw;
|
|
EventLoop loop;
|
|
|
|
WindowManager::the().setRootWidget(&rw);
|
|
|
|
MsgBox(nullptr, "Serenity Operating System");
|
|
|
|
dbgprintf("Entering WindowComposer main loop.\n");
|
|
loop.exec();
|
|
|
|
ASSERT_NOT_REACHED();
|
|
}
|