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:
parent
077f1007eb
commit
3e908abfca
9 changed files with 54 additions and 34 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue