Mercurial > sdl-ios-xcode
comparison test/testshape.c @ 5145:c8e049de174c
Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 12:19:46 -0800 |
parents | dc0dfdd58f27 |
children | ad50b3db78bd |
comparison
equal
deleted
inserted
replaced
5144:31e7f523ab3d | 5145:c8e049de174c |
---|---|
100 free(pictures); | 100 free(pictures); |
101 SDL_VideoQuit(); | 101 SDL_VideoQuit(); |
102 printf("Could not create shaped window for SDL_Shape.\n"); | 102 printf("Could not create shaped window for SDL_Shape.\n"); |
103 exit(-4); | 103 exit(-4); |
104 } | 104 } |
105 if(SDL_CreateRenderer(window,-1,SDL_RENDERER_PRESENTFLIP2) == -1) { | 105 if(SDL_CreateRenderer(window,-1,0) == -1) { |
106 SDL_DestroyWindow(window); | 106 SDL_DestroyWindow(window); |
107 for(i=0;i<num_pictures;i++) | 107 for(i=0;i<num_pictures;i++) |
108 SDL_FreeSurface(pictures[i].surface); | 108 SDL_FreeSurface(pictures[i].surface); |
109 free(pictures); | 109 free(pictures); |
110 SDL_VideoQuit(); | 110 SDL_VideoQuit(); |