Explorar o código

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

Streetwalrus Einstein %!s(int64=10) %!d(string=hai) anos
pai
achega
7862f6db06
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;