1
0
Fork 0
forked from len0rd/rockbox

sdl: Fix the sdl init so the sim will get a taskbar item

Change-Id: Ib0049f96c54b4471a8185937d92bb6e8a492142a
This commit is contained in:
Jonathan Gordon 2012-03-20 21:26:37 +11:00
parent bb6ac6fcba
commit 287bf71247

View file

@ -133,6 +133,8 @@ static int sdl_event_thread(void * param)
flags |= SDL_FULLSCREEN;
#endif
SDL_WM_SetCaption(UI_TITLE, NULL);
if ((gui_surface = SDL_SetVideoMode(width * display_zoom, height * display_zoom, depth, flags)) == NULL) {
panicf("%s", SDL_GetError());
}
@ -149,8 +151,6 @@ static int sdl_event_thread(void * param)
SDL_SetCursor(hiddenCursor);
#endif
SDL_WM_SetCaption(UI_TITLE, NULL);
if (background && picture_surface != NULL)
SDL_BlitSurface(picture_surface, NULL, gui_surface, NULL);