From: Reto Zingg Date: Mon, 28 Dec 2009 14:56:07 +0000 (+0200) Subject: do not set SDL_caption and Icon, otherwise we get 2 windows in maemo taskswitcher X-Git-Tag: fremantle/0.2.3-1~1 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=be953fe1e3ff0445c0de44631fcadf4576118a8a;p=mancala do not set SDL_caption and Icon, otherwise we get 2 windows in maemo taskswitcher --- diff --git a/src/play.c b/src/play.c index e18b642..cb761dd 100644 --- a/src/play.c +++ b/src/play.c @@ -211,10 +211,10 @@ int play() { board_rect.h = 0; /* set window properties and create it */ - SDL_WM_SetCaption("Mancala", "Mancala"); - if (sprintf(icon_path, "%s/icon.png", RES_PATH) == 0) - printf("Problems assembling icon path.\n"); - SDL_WM_SetIcon(LoadRes(icon_path), NULL); + // SDL_WM_SetCaption("Mancala", "Mancala"); + // if (sprintf(icon_path, "%s/icon.png", RES_PATH) == 0) + // printf("Problems assembling icon path.\n"); + // SDL_WM_SetIcon(LoadRes(icon_path), NULL); if ((screen = SDL_SetVideoMode(tile->w*8, (tile->h*2) + Y_OFFSET, 16, SDL_FULLSCREEN)) == NULL) { printf("Unable to set %dx%d video: %s", tile->w*8,