Files
buildroot/package/sdl/sdl-clear-fb-on-startup.patch
2019-09-25 20:52:32 -03:00

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");