Mercurial > sdl-ios-xcode
comparison test/testsprite.c @ 1666:6e7ec5cb83c3 SDL-1.3
The dummy video driver compiles. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 21:56:07 +0000 |
parents | 782fd950bd46 |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1665:28193f833b2b | 1666:6e7ec5cb83c3 |
---|---|
154 } | 154 } |
155 | 155 |
156 int | 156 int |
157 main (int argc, char *argv[]) | 157 main (int argc, char *argv[]) |
158 { | 158 { |
159 SDL_DisplayMode mode; | |
160 SDL_Surface *screen; | 159 SDL_Surface *screen; |
161 Uint8 *mem; | 160 Uint8 *mem; |
162 int width, height; | 161 int width, height; |
163 Uint8 video_bpp; | 162 Uint8 video_bpp; |
164 Uint32 videoflags; | 163 Uint32 videoflags; |
210 quit (1); | 209 quit (1); |
211 } | 210 } |
212 } | 211 } |
213 | 212 |
214 /* Set video mode */ | 213 /* Set video mode */ |
215 mode.format = 0; /* FIXME */ | 214 screen = SDL_SetVideoMode (width, height, video_bpp, videoflags); |
216 mode.w = width; | |
217 mode.h = height; | |
218 mode.refresh_rate = 0; | |
219 screen = SDL_SetDisplayMode (&mode, videoflags); | |
220 if (!screen) { | 215 if (!screen) { |
221 fprintf (stderr, "Couldn't set %dx%d video mode: %s\n", | 216 fprintf (stderr, "Couldn't set %dx%d video mode: %s\n", |
222 width, height, SDL_GetError ()); | 217 width, height, SDL_GetError ()); |
223 quit (2); | 218 quit (2); |
224 } | 219 } |