Commit c8653c95 authored by Projects's avatar Projects

Fix screen clearing in DMA mode.

parent 113e686e
......@@ -189,15 +189,11 @@ void lcd_clear(void)
*p++ = 0x00;
#ifndef LCD_NODMA
// Clear pixel buffer
for(i = 0; i < sizeof(buffer) / sizeof(uint32_t); ++i)
*p++ = 0x00;
// Add control codes
for(i = 0; i < LCD_HEIGHT; ++i)
{
// Add control codes
buffer[i * LCD_STRIDE - 2] = 0xff; // Dummy
buffer[i * LCD_STRIDE - 1] = (i + 2); // Address of next line
buffer[i * LCD_STRIDE - 1] = (i + 1); // Address of next line
}
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment