mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
15 lines
506 B
Diff
15 lines
506 B
Diff
diff --git a/src/video/fbcon/SDL_fbvideo.c b/src/video/fbcon/SDL_fbvideo.c
|
|
index c077d82..052e7de 100644
|
|
--- a/src/video/fbcon/SDL_fbvideo.c
|
|
+++ b/src/video/fbcon/SDL_fbvideo.c
|
|
@@ -590,6 +590,9 @@ static int FB_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
|
return(-1);
|
|
}
|
|
|
|
+ /* Clear the mapped area */
|
|
+ memset(mapped_mem, 0, mapped_memlen);
|
|
+
|
|
/* Determine the current screen depth */
|
|
if ( ioctl(console_fd, FBIOGET_VSCREENINFO, &vinfo) < 0 ) {
|
|
SDL_SetError("Couldn't get console pixel format");
|