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

14 lines
523 B
Diff

diff --git a/src/video/fbcon/SDL_fbvideo.c b/src/video/fbcon/SDL_fbvideo.c
index 052e7de..037d17f 100644
--- a/src/video/fbcon/SDL_fbvideo.c
+++ b/src/video/fbcon/SDL_fbvideo.c
@@ -1930,7 +1930,7 @@ static void FB_VideoQuit(_THIS)
int left = this->screen->pitch*this->screen->h;
while ( left-- ) { *rowp++ = 0; }
#else
- SDL_memset(this->screen->pixels,0,this->screen->h*this->screen->pitch);
+ SDL_memset(mapped_mem, 0, mapped_memlen);
#endif
}
/* This test fails when using the VGA16 shadow memory */