test/testshape.c
changeset 7478 0d02f6a323f5
parent 7191 75360622e65f
child 7479 ef5b0ca53305
equal deleted inserted replaced
7477:a73210626b97 7478:0d02f6a323f5
   104             pictures[i].mode.mode = ShapeModeColorKey;
   104             pictures[i].mode.mode = ShapeModeColorKey;
   105             pictures[i].mode.parameters.colorKey = black;
   105             pictures[i].mode.parameters.colorKey = black;
   106         }
   106         }
   107     }
   107     }
   108 
   108 
   109     window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN);
   109     window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE);
   110     if(window == NULL) {
   110     if(window == NULL) {
   111         for(i=0;i<num_pictures;i++)
   111         for(i=0;i<num_pictures;i++)
   112             SDL_FreeSurface(pictures[i].surface);
   112             SDL_FreeSurface(pictures[i].surface);
   113         free(pictures);
   113         free(pictures);
   114         SDL_VideoQuit();
   114         SDL_VideoQuit();