2019-01-16 16:03:50 +01:00
|
|
|
#include "Process.h"
|
2019-01-19 23:22:46 +01:00
|
|
|
#include <SharedGraphics/Font.h>
|
2019-01-18 05:41:15 +01:00
|
|
|
#include <WindowServer/WSScreen.h>
|
2019-01-16 16:03:50 +01:00
|
|
|
#include <WindowServer/WSWindowManager.h>
|
|
|
|
|
#include <WindowServer/WSEventLoop.h>
|
|
|
|
|
#include <WindowServer/WSWindow.h>
|
|
|
|
|
|
|
|
|
|
// NOTE: This actually runs as a kernel process.
|
|
|
|
|
// I'd like to change this eventually.
|
|
|
|
|
|
|
|
|
|
void WindowServer_main()
|
|
|
|
|
{
|
|
|
|
|
auto info = current->get_display_info();
|
|
|
|
|
|
|
|
|
|
dbgprintf("Screen is %ux%ux%ubpp\n", info.width, info.height, info.bpp);
|
|
|
|
|
|
2019-01-18 05:41:15 +01:00
|
|
|
WSScreen screen((dword*)info.framebuffer, info.width, info.height);
|
2019-01-16 16:03:50 +01:00
|
|
|
|
|
|
|
|
WSWindowManager::the();
|
|
|
|
|
|
|
|
|
|
dbgprintf("Entering WindowServer main loop.\n");
|
|
|
|
|
WSEventLoop::the().exec();
|
|
|
|
|
|
|
|
|
|
ASSERT_NOT_REACHED();
|
|
|
|
|
}
|