1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:08:11 +00:00

Start separating out the SDL-related stuff in Widgets.

This commit is contained in:
Andreas Kling 2019-01-10 05:21:19 +01:00
parent 077f1007eb
commit 3e908abfca
9 changed files with 54 additions and 34 deletions

View file

@ -3,13 +3,13 @@
#include "RootWidget.h"
#include "Painter.h"
#include "WindowManager.h"
#include "FrameBufferSDL.h"
#include "FrameBuffer.h"
#include <cstdio>
RootWidget::RootWidget()
{
setWindowRelativeRect(FrameBufferSDL::the().rect());
m_backing = GraphicsBitmap::create_wrapper(size(), (byte*)FrameBufferSDL::the().scanline(0));
setWindowRelativeRect(FrameBuffer::the().rect());
m_backing = GraphicsBitmap::create_wrapper(size(), (byte*)FrameBuffer::the().scanline(0));
}
RootWidget::~RootWidget()