diff --git a/dwscr.cc b/dwscr.cc index 2c6c27c..4dee39d 100644 --- a/dwscr.cc +++ b/dwscr.cc @@ -71,11 +71,11 @@ int main(int argc, char * argv[]) /* make the SDL window appear in the top-left corner of the screen */ if (!windowed) - setenv("SDL_VIDEO_WINDOW_POS", "0,0", 1); + putenv((char *) "SDL_VIDEO_WINDOW_POS=0,0"); /* do not disable power management (this will allow monitors * to power off at the normally configured timeout) */ - setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1); + putenv((char *) "SDL_VIDEO_ALLOW_SCREENSAVER=1"); if (!start) return 0;