Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11modes.c @ 1379:c0a74f199ecf
Use only safe string functions
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 23:46:34 +0000 |
parents | 19418e4422cb |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1378:dc0e13e7e1ae | 1379:c0a74f199ecf |
---|---|
491 if ( SDL_getenv("SDL_VIDEO_X11_NODIRECTCOLOR") ) { | 491 if ( SDL_getenv("SDL_VIDEO_X11_NODIRECTCOLOR") ) { |
492 use_directcolor = 0; | 492 use_directcolor = 0; |
493 } | 493 } |
494 this->hidden->nvisuals = 0; | 494 this->hidden->nvisuals = 0; |
495 if ( ! add_visual_byid(this, SDL_getenv("SDL_VIDEO_X11_VISUALID")) ) { | 495 if ( ! add_visual_byid(this, SDL_getenv("SDL_VIDEO_X11_VISUALID")) ) { |
496 for ( i=0; i<SDL_TABLESIZE(depth_list); ++i ) { | 496 for ( i=0; i<SDL_arraysize(depth_list); ++i ) { |
497 if ( depth_list[i] > 8 ) { | 497 if ( depth_list[i] > 8 ) { |
498 if ( use_directcolor ) { | 498 if ( use_directcolor ) { |
499 add_visual(this, depth_list[i], DirectColor); | 499 add_visual(this, depth_list[i], DirectColor); |
500 } | 500 } |
501 add_visual(this, depth_list[i], TrueColor); | 501 add_visual(this, depth_list[i], TrueColor); |