Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 1656:96c2f89cc7e1 SDL-1.3
SDL-trunk-1.3-merge-1
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Apr 2006 09:09:48 +0000 |
parents | 59227394023d |
children | e49147870aac |
comparison
equal
deleted
inserted
replaced
1655:59227394023d | 1656:96c2f89cc7e1 |
---|---|
227 video->gl_config.accum_blue_size = 0; | 227 video->gl_config.accum_blue_size = 0; |
228 video->gl_config.accum_alpha_size = 0; | 228 video->gl_config.accum_alpha_size = 0; |
229 video->gl_config.stereo = 0; | 229 video->gl_config.stereo = 0; |
230 video->gl_config.multisamplebuffers = 0; | 230 video->gl_config.multisamplebuffers = 0; |
231 video->gl_config.multisamplesamples = 0; | 231 video->gl_config.multisamplesamples = 0; |
232 video->gl_config.accelerated = -1; /* not known, don't set */ | |
233 video->gl_config.swap_control = -1; /* not known, don't set */ | |
232 | 234 |
233 /* Initialize the video subsystem */ | 235 /* Initialize the video subsystem */ |
234 SDL_memset(&vformat, 0, sizeof(vformat)); | 236 SDL_memset(&vformat, 0, sizeof(vformat)); |
235 if ( video->VideoInit(video, &vformat) < 0 ) { | 237 if ( video->VideoInit(video, &vformat) < 0 ) { |
236 SDL_VideoQuit(); | 238 SDL_VideoQuit(); |
1391 video->gl_config.multisamplebuffers = value; | 1393 video->gl_config.multisamplebuffers = value; |
1392 break; | 1394 break; |
1393 case SDL_GL_MULTISAMPLESAMPLES: | 1395 case SDL_GL_MULTISAMPLESAMPLES: |
1394 video->gl_config.multisamplesamples = value; | 1396 video->gl_config.multisamplesamples = value; |
1395 break; | 1397 break; |
1398 case SDL_GL_ACCELERATED_VISUAL: | |
1399 video->gl_config.accelerated = value; | |
1400 break; | |
1401 case SDL_GL_SWAP_CONTROL: | |
1402 video->gl_config.swap_control = value; | |
1403 break; | |
1396 default: | 1404 default: |
1397 SDL_SetError("Unknown OpenGL attribute"); | 1405 SDL_SetError("Unknown OpenGL attribute"); |
1398 retval = -1; | 1406 retval = -1; |
1399 break; | 1407 break; |
1400 } | 1408 } |