comparison test/testbitmap.c @ 3094:c0ce3380742d

Fixed potential crash in testbitmap
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Mar 2009 06:56:37 +0000
parents f55c87ae336b
children
comparison
equal deleted inserted replaced
3093:375ee92745e8 3094:c0ce3380742d
106 #endif 106 #endif
107 107
108 /* Set 640x480 video mode */ 108 /* Set 640x480 video mode */
109 if ((screen = 109 if ((screen =
110 SDL_SetVideoMode(video_w, video_h, video_bpp, videoflags)) == NULL) { 110 SDL_SetVideoMode(video_w, video_h, video_bpp, videoflags)) == NULL) {
111 fprintf(stderr, "Couldn't set %%d%d video mode: %s\n", video_w, 111 fprintf(stderr, "Couldn't set %dx%d %d video mode: %s\n", video_w,
112 video_h, video_bpp, SDL_GetError()); 112 video_h, video_bpp, SDL_GetError());
113 quit(2); 113 quit(2);
114 } 114 }
115 115
116 if (video_bpp == 8) { 116 if (video_bpp == 8) {