kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed pixel setting in black and white graphics driver
rodzic
190548a0d0
commit
160b23f1b7
|
@ -122,7 +122,8 @@ void _bw_setPixel(point_t pos, bw_t bw)
|
||||||
*/
|
*/
|
||||||
uint16_t cell = (pos.x + pos.y*screen_width) / 8;
|
uint16_t cell = (pos.x + pos.y*screen_width) / 8;
|
||||||
uint16_t elem = (pos.x + pos.y*screen_width) % 8;
|
uint16_t elem = (pos.x + pos.y*screen_width) % 8;
|
||||||
buf[cell] = buf[cell] & (bw << elem);
|
buf[cell] &= ~(1 << elem);
|
||||||
|
buf[cell] |= (bw << elem);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfx_setPixel(point_t pos, color_t color)
|
void gfx_setPixel(point_t pos, color_t color)
|
||||||
|
|
Ładowanie…
Reference in New Issue