소스 검색

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

Streetwalrus Einstein 10 년 전
부모
커밋
7862f6db06
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;