do not set SDL_caption and Icon, otherwise we get 2 windows in maemo taskswitcher
authorReto Zingg <g.d0b3rm4n@gmail.com>
Mon, 28 Dec 2009 14:56:07 +0000 (16:56 +0200)
committerReto Zingg <g.d0b3rm4n@gmail.com>
Mon, 28 Dec 2009 14:56:07 +0000 (16:56 +0200)
src/play.c

index e18b642..cb761dd 100644 (file)
@@ -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,