mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
Fix uninitialized AbstractScreen instance pointer.
...yeah yeah, one day I'm gonna zero out the kernel's BSS segment. Soon..
This commit is contained in:
parent
f6d2c3ed87
commit
d1ceb4b603
3 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,7 @@ void WindowComposer_main()
|
||||||
FrameBuffer::initialize();
|
FrameBuffer::initialize();
|
||||||
EventLoop::initialize();
|
EventLoop::initialize();
|
||||||
WindowManager::initialize();
|
WindowManager::initialize();
|
||||||
|
AbstractScreen::initialize();
|
||||||
|
|
||||||
auto info = current->get_display_info();
|
auto info = current->get_display_info();
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
static AbstractScreen* s_the;
|
static AbstractScreen* s_the;
|
||||||
|
|
||||||
|
void AbstractScreen::initialize()
|
||||||
|
{
|
||||||
|
s_the = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
AbstractScreen& AbstractScreen::the()
|
AbstractScreen& AbstractScreen::the()
|
||||||
{
|
{
|
||||||
ASSERT(s_the);
|
ASSERT(s_the);
|
||||||
|
|
|
@ -16,6 +16,8 @@ public:
|
||||||
Size size() const { return { width(), height() }; }
|
Size size() const { return { width(), height() }; }
|
||||||
Rect rect() const { return { 0, 0, width(), height() }; }
|
Rect rect() const { return { 0, 0, width(), height() }; }
|
||||||
|
|
||||||
|
static void initialize();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
AbstractScreen(unsigned width, unsigned height);
|
AbstractScreen(unsigned width, unsigned height);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue