mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 04:51:53 +02:00
Init the Menu before initializing SDL
This avoids seeing a black screen for a few seconds while GMenu2X is loading.
This commit is contained in:
parent
eae7156d4e
commit
9fba35feed
@ -217,6 +217,12 @@ GMenu2X::GMenu2X()
|
||||
*/
|
||||
setenv("SDL_FBCON_DONT_CLEAR", "1", 0);
|
||||
|
||||
bg = NULL;
|
||||
font = NULL;
|
||||
setSkin(confStr["skin"], !fileExists(confStr["wallpaper"]));
|
||||
layers.insert(layers.begin(), make_shared<Background>(*this));
|
||||
initMenu();
|
||||
|
||||
//Screen
|
||||
if( SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) {
|
||||
ERROR("Could not initialize SDL: %s\n", SDL_GetError());
|
||||
@ -225,12 +231,6 @@ GMenu2X::GMenu2X()
|
||||
|
||||
s = Surface::openOutputSurface(resX, resY, confInt["videoBpp"]);
|
||||
|
||||
bg = NULL;
|
||||
font = NULL;
|
||||
setSkin(confStr["skin"], !fileExists(confStr["wallpaper"]));
|
||||
layers.insert(layers.begin(), make_shared<Background>(*this));
|
||||
initMenu();
|
||||
|
||||
#ifdef ENABLE_INOTIFY
|
||||
monitor = new MediaMonitor(CARD_ROOT);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user