mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 05:55:00 +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:
parent
b5698e8ed7
commit
f6c456f35b
@ -348,6 +348,13 @@ GMenu2X::GMenu2X() {
|
|||||||
unlockVT();
|
unlockVT();
|
||||||
#endif
|
#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
|
//Screen
|
||||||
if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK|SDL_INIT_TIMER)<0 ) {
|
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());
|
ERROR("Could not initialize SDL: %s\n", SDL_GetError());
|
||||||
@ -409,12 +416,9 @@ void GMenu2X::quit() {
|
|||||||
sc.clear();
|
sc.clear();
|
||||||
delete s;
|
delete s;
|
||||||
|
|
||||||
#ifdef UNLOCK_VT
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_EVERYTHING & ~SDL_INIT_VIDEO);
|
|
||||||
unlockVT();
|
|
||||||
#else
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
#endif
|
|
||||||
|
unsetenv("SDL_FBCON_DONT_CLEAR");
|
||||||
|
|
||||||
#ifdef TARGET_GP2X
|
#ifdef TARGET_GP2X
|
||||||
/* if (gp2x_mem!=0) {
|
/* if (gp2x_mem!=0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user