[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:
Justin C. Miller
2021-01-17 20:53:41 -08:00
parent 3dffe564af
commit dcb8a3f3fb
3 changed files with 17 additions and 3 deletions

View File

@@ -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;