comparison test/testime.c @ 3581:15eea7a1fa97

Implemented SDL_setenv(), moved SDL_putenv() to compat. Fixes Bugzilla #779.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 16 Dec 2009 10:59:51 +0000
parents f7541260e89c
children 3e69e077cb95
comparison
equal deleted inserted replaced
3580:951dd6a5d1a2 3581:15eea7a1fa97
58 else 58 else
59 usage(); 59 usage();
60 } 60 }
61 } 61 }
62 62
63 SDL_putenv("SDL_VIDEO_WINDOW_POS=center"); 63 SDL_setenv("SDL_VIDEO_WINDOW_POS", "center", 1);
64 if (SDL_Init(SDL_INIT_VIDEO) < 0) 64 if (SDL_Init(SDL_INIT_VIDEO) < 0)
65 { 65 {
66 fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError()); 66 fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());
67 exit(-1); 67 exit(-1);
68 } 68 }