mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 18:45:08 +00:00

The system can finally idle without burning CPU. :^) There are some issues with scheduling making the mouse cursor sloppy and unresponsive that need to be dealt with.
25 lines
435 B
C++
25 lines
435 B
C++
#pragma once
|
|
|
|
#include "WSScreen.h"
|
|
#include <Widgets/Color.h>
|
|
|
|
class GraphicsBitmap;
|
|
|
|
class WSFrameBuffer final : public WSScreen {
|
|
public:
|
|
WSFrameBuffer(unsigned width, unsigned height);
|
|
WSFrameBuffer(RGBA32*, unsigned width, unsigned height);
|
|
~WSFrameBuffer();
|
|
|
|
void show();
|
|
|
|
static WSFrameBuffer& the();
|
|
|
|
RGBA32* scanline(int y);
|
|
|
|
static void initialize();
|
|
|
|
private:
|
|
RGBA32* m_data { nullptr };
|
|
};
|
|
|