2019-01-09 02:29:11 +01:00
|
|
|
#include "WindowComposer.h"
|
|
|
|
|
#include "Process.h"
|
2019-01-10 23:19:29 +01:00
|
|
|
#include <Widgets/Font.h>
|
|
|
|
|
#include <Widgets/FrameBuffer.h>
|
|
|
|
|
#include <Widgets/WindowManager.h>
|
|
|
|
|
#include <Widgets/EventLoop.h>
|
2019-01-11 04:10:07 +01:00
|
|
|
#include <Widgets/Window.h>
|
2019-01-09 02:29:11 +01:00
|
|
|
|
|
|
|
|
void WindowComposer_main()
|
|
|
|
|
{
|
|
|
|
|
auto info = current->get_display_info();
|
|
|
|
|
|
2019-01-10 23:19:29 +01:00
|
|
|
dbgprintf("Screen is %ux%ux%ubpp\n", info.width, info.height, info.bpp);
|
|
|
|
|
|
|
|
|
|
FrameBuffer framebuffer((dword*)info.framebuffer, info.width, info.height);
|
|
|
|
|
|
2019-01-14 14:21:51 +01:00
|
|
|
WindowManager::the();
|
2019-01-11 04:10:07 +01:00
|
|
|
|
2019-01-09 02:29:11 +01:00
|
|
|
dbgprintf("Entering WindowComposer main loop.\n");
|
2019-01-13 01:59:38 +01:00
|
|
|
EventLoop::main().exec();
|
2019-01-09 02:29:11 +01:00
|
|
|
|
2019-01-10 23:19:29 +01:00
|
|
|
ASSERT_NOT_REACHED();
|
2019-01-09 02:29:11 +01:00
|
|
|
}
|