Fixed SDL-based display driver giving errors when compiled in BW pixel mode

This commit is contained in:
Silvano Seva 2022-12-08 21:54:52 +01:00
parent 7ce72d8325
commit bd8585c45d
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ void display_renderRows(uint8_t startRow, uint8_t endRow)
#ifdef PIX_FMT_RGB565
memcpy(fb, frameBuffer, sizeof(PIXEL_SIZE) * SCREEN_HEIGHT * SCREEN_WIDTH);
#else
uint32_t *pixels = (uint32_t *) fb;
for (unsigned int x = 0; x < SCREEN_WIDTH; x++)
{
for (unsigned int y = startRow; y < endRow; y++)