comparison src/video/SDL_video.c @ 1385:85d8b5fdd9f6

Fixed defaults for 8 bpp visuals
author Sam Lantinga <slouken@libsdl.org>
date Mon, 20 Feb 2006 10:18:08 +0000
parents c0a74f199ecf
children d910939febfa
comparison
equal deleted inserted replaced
1384:6fd39b50dd91 1385:85d8b5fdd9f6
215 video->displayformatalphapixel = NULL; 215 video->displayformatalphapixel = NULL;
216 216
217 /* Set some very sane GL defaults */ 217 /* Set some very sane GL defaults */
218 video->gl_config.driver_loaded = 0; 218 video->gl_config.driver_loaded = 0;
219 video->gl_config.dll_handle = NULL; 219 video->gl_config.dll_handle = NULL;
220 video->gl_config.red_size = 5; 220 video->gl_config.red_size = 3;
221 #if 1 /* This seems to work on more video cards, as a default */ 221 video->gl_config.green_size = 3;
222 video->gl_config.green_size = 5; 222 video->gl_config.blue_size = 2;
223 #else
224 video->gl_config.green_size = 6;
225 #endif
226 video->gl_config.blue_size = 5;
227 video->gl_config.alpha_size = 0; 223 video->gl_config.alpha_size = 0;
228 video->gl_config.buffer_size = 0; 224 video->gl_config.buffer_size = 0;
229 video->gl_config.depth_size = 16; 225 video->gl_config.depth_size = 16;
230 video->gl_config.stencil_size = 0; 226 video->gl_config.stencil_size = 0;
231 video->gl_config.double_buffer = 1; 227 video->gl_config.double_buffer = 1;