Remove simuLcdBuf inversion on BW targets

This commit is contained in:
Raphael Coeffic
2021-06-05 20:29:09 +02:00
committed by Raphael Coeffic
parent 31071cc0fc
commit 875c1688b1
2 changed files with 0 additions and 14 deletions
-10
View File
@@ -50,17 +50,7 @@ void lcdRefresh()
// Mark screen dirty for async refresh
simuLcdRefresh = true;
#if defined(LCD_VERTICAL_INVERT)
auto src = displayBuf + DISPLAY_BUFFER_SIZE - 1;
auto dst = simuLcdBuf;
auto end = dst + DISPLAY_BUFFER_SIZE;
while (dst != end) {
*(dst++) = *(src--);
}
#else
memcpy(simuLcdBuf, displayBuf, DISPLAY_BUFFER_SIZE * sizeof(pixel_t));
#endif
}
#else