[fb] Use rep stosl for screen fill

This is mostly cleanup after fighting the double buffering bug - bring
back rep stosl for screen fill, and move draw_pixel to be an inline
function.
This commit is contained in:
Justin C. Miller
2021-02-05 23:55:42 -08:00
parent b5885ae35f
commit 572fade7ff
2 changed files with 10 additions and 11 deletions

View File

@@ -17,7 +17,11 @@ public:
pixel_t color(uint8_t r, uint8_t g, uint8_t b) const;
void fill(pixel_t color);
void draw_pixel(unsigned x, unsigned y, pixel_t color);
inline void draw_pixel(unsigned x, unsigned y, pixel_t color) {
const size_t index = x + y * m_scanline;
m_back[index] = color;
}
void update();