[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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user