mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[fb] Use double-buffering in fb driver
Allocate and use a back buffer, so that draws to the screen are always a single memcpy()
This commit is contained in:
@@ -19,8 +19,10 @@ public:
|
||||
void fill(pixel_t color);
|
||||
void draw_pixel(unsigned x, unsigned y, pixel_t color);
|
||||
|
||||
void update();
|
||||
|
||||
private:
|
||||
pixel_t *m_fb;
|
||||
pixel_t *m_fb, *m_back;
|
||||
pixel_order m_order;
|
||||
unsigned m_resx, m_resy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user