WindowComposer.cpp 578 B

1234567891011121314151617181920212223
  1. #include "WindowComposer.h"
  2. #include "Process.h"
  3. #include <Widgets/Font.h>
  4. #include <Widgets/FrameBuffer.h>
  5. #include <Widgets/WindowManager.h>
  6. #include <Widgets/EventLoop.h>
  7. #include <Widgets/Window.h>
  8. void WindowComposer_main()
  9. {
  10. auto info = current->get_display_info();
  11. dbgprintf("Screen is %ux%ux%ubpp\n", info.width, info.height, info.bpp);
  12. FrameBuffer framebuffer((dword*)info.framebuffer, info.width, info.height);
  13. WindowManager::the();
  14. dbgprintf("Entering WindowComposer main loop.\n");
  15. EventLoop::main().exec();
  16. ASSERT_NOT_REACHED();
  17. }