1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 04:30:38 +02:00

GMenu2X now won't clear the framebuffer on exit.

Instead, the loading screen image will remain even when GMenu2X is not running anymore.

This require a patched SDL; the patch can be found at
https://github.com/mthuurne/opendingux-buildroot/blob/opendingux-2010.11/package/sdl/sdl-fbcon-clear-onexit.patch
This commit is contained in:
Ayla 2011-07-28 01:48:12 +02:00
parent b5698e8ed7
commit f6c456f35b

View File

@ -348,6 +348,13 @@ GMenu2X::GMenu2X() {
unlockVT();
#endif
/* Do not clear the screen on exit.
* This may require an SDL patch available at
* https://github.com/mthuurne/opendingux-buildroot/blob
* /opendingux-2010.11/package/sdl/sdl-fbcon-clear-onexit.patch
*/
setenv("SDL_FBCON_DONT_CLEAR", "1", 0);
//Screen
if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK|SDL_INIT_TIMER)<0 ) {
ERROR("Could not initialize SDL: %s\n", SDL_GetError());
@ -409,12 +416,9 @@ void GMenu2X::quit() {
sc.clear();
delete s;
#ifdef UNLOCK_VT
SDL_QuitSubSystem(SDL_INIT_EVERYTHING & ~SDL_INIT_VIDEO);
unlockVT();
#else
SDL_Quit();
#endif
unsetenv("SDL_FBCON_DONT_CLEAR");
#ifdef TARGET_GP2X
/* if (gp2x_mem!=0) {