diff 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
line wrap: on
line diff
--- a/test/testime.c	Wed Dec 16 08:17:05 2009 +0000
+++ b/test/testime.c	Wed Dec 16 10:59:51 2009 +0000
@@ -60,7 +60,7 @@
         }
     }
 
-    SDL_putenv("SDL_VIDEO_WINDOW_POS=center");
+    SDL_setenv("SDL_VIDEO_WINDOW_POS", "center", 1);
     if (SDL_Init(SDL_INIT_VIDEO) < 0)
     {
         fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());