diff options
author | rich cannings <richc@google.com> | 2011-01-25 11:26:47 -0800 |
---|---|---|
committer | rich cannings <richc@google.com> | 2011-01-25 11:26:47 -0800 |
commit | 646a4f8761b4de1f20a42b7e069ca0f75689724a (patch) | |
tree | 4f41fb5b5fe0e24dd58ad95ba4d3fa31bdc585ab /android/skin | |
parent | d869b7ccca003d255d303ec684e3eb7249b8323e (diff) | |
download | external_qemu-646a4f8761b4de1f20a42b7e069ca0f75689724a.zip external_qemu-646a4f8761b4de1f20a42b7e069ca0f75689724a.tar.gz external_qemu-646a4f8761b4de1f20a42b7e069ca0f75689724a.tar.bz2 |
Use setenv when available
Even putenv("X=y") is bad because the "string becomes part of the
environment; changing it later will change the environment."
(http://www.kernel.org/doc/man-pages/online/pages/man3/putenv.3.html)
Change-Id: I0d57204a7020649493fb005c962951407d40fa45
Diffstat (limited to 'android/skin')
-rw-r--r-- | android/skin/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/skin/window.c b/android/skin/window.c index c577f8f..431412b 100644 --- a/android/skin/window.c +++ b/android/skin/window.c @@ -1255,11 +1255,12 @@ skin_window_resize( SkinWindow* window ) #ifdef HAVE_SETENV sprintf(temp, "%d,%d", window_x, window_y); setenv("SDL_VIDEO_WINDOW_POS", temp, 1); + setenv("SDL_VIDEO_WINDOW_FORCE_VISIBLE", "1", 1); #else sprintf(temp,"SDL_VIDEO_WINDOW_POS=%d,%d",window_x,window_y); putenv(temp); -#endif putenv("SDL_VIDEO_WINDOW_FORCE_VISIBLE=1"); +#endif } flags = SDL_SWSURFACE; |