Browse Source

Graphics: clear the on-screen buffer before pointing the LCD driver to it

Streetwalrus Einstein 10 years ago
parent
commit
7862f6db06
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/drivers/Graphics.cpp

+ 2 - 0
src/drivers/Graphics.cpp

@@ -36,6 +36,8 @@ void GRAPHICS::buffer_allocate()
         exit(0);
     }
 
+    memset(buffer_screen, 0, BUFFER_SIZE);
+
     buffer_os = (unsigned short *) *lcd_base;
     *lcd_base = (unsigned) buffer_screen;
     buffer_swap_ready = false;