1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

Intense hacking on Widgets.

This commit is contained in:
Andreas Kling 2018-10-10 16:49:36 +02:00
parent 8c84f9749e
commit 6f37429f57
20 changed files with 290 additions and 5 deletions

View file

@ -1,9 +1,19 @@
#include "FrameBufferSDL.h"
#include <AK/Assertions.h>
FrameBufferSDL* s_the = nullptr;
FrameBufferSDL& FrameBufferSDL::the()
{
ASSERT(s_the);
return *s_the;
}
FrameBufferSDL::FrameBufferSDL(unsigned width, unsigned height)
: AbstractScreen(width, height)
{
ASSERT(!s_the);
s_the = this;
initializeSDL();
}