🎨 Misc. 'else' cleanup

This commit is contained in:
Scott Lahteine
2022-07-28 20:52:33 -05:00
parent ec9a2ee557
commit 9534c6e903
5 changed files with 48 additions and 43 deletions

View File

@ -372,9 +372,9 @@ void TFT_LTDC::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Cou
if (MemoryIncrease == DMA_PINC_ENABLE) {
DrawImage(x_min, y_cur, x_min + width, y_cur + height, Data);
Data += width * height;
} else {
DrawRect(x_min, y_cur, x_min + width, y_cur + height, *Data);
}
else
DrawRect(x_min, y_cur, x_min + width, y_cur + height, *Data);
y_cur += height;
}