ladybird/Kernel/WindowComposer.cpp

24 lines
578 B
C++
Raw Normal View History

#include "WindowComposer.h"
#include "Process.h"
#include <Widgets/Font.h>
#include <Widgets/FrameBuffer.h>
#include <Widgets/WindowManager.h>
#include <Widgets/EventLoop.h>
#include <Widgets/Window.h>
void WindowComposer_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 WindowComposer main loop.\n");
2019-01-13 01:59:38 +01:00
EventLoop::main().exec();
ASSERT_NOT_REACHED();
}