diff options
| author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2007-09-28 19:02:15 +0000 |
|---|---|---|
| committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2007-09-28 19:02:15 +0000 |
| commit | 79d07496f0bbc326d9411070659ae30ef3e4a824 (patch) | |
| tree | 770e3f86a3328c5a7a6647d7397e9501f50df119 /src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp | |
| parent | c54daca8361d0d49f616d7d4ba3959a2217c0903 (diff) | |
| download | VirtualBox-svn-79d07496f0bbc326d9411070659ae30ef3e4a824.tar.gz | |
getenv => RTEnvGet
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@5107 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp')
| -rw-r--r-- | src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp b/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp index 9b61a5682a8..016f0acb932 100644 --- a/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp +++ b/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp @@ -22,11 +22,11 @@ #include <SDL.h> #include <iprt/assert.h> +#include <iprt/env.h> #include <iprt/stream.h> #include <iprt/string.h> #include <iprt/time.h> -#include <stdlib.h> #include <signal.h> #ifdef VBOX_OPENGL @@ -89,7 +89,7 @@ main(int argc, char **argv) #ifdef RT_OS_WINDOWS /* Default to DirectX if nothing else set. "windib" would be possible. */ - if (!getenv("SDL_VIDEODRIVER")) + if (!RTEnvGet("SDL_VIDEODRIVER")) { _putenv("SDL_VIDEODRIVER=directx"); } @@ -130,7 +130,7 @@ main(int argc, char **argv) RTPrintf(" Video memory in kilobytes: %d\n", videoInfo->video_mem); RTPrintf(" Optimal bpp mode: %d\n", videoInfo->vfmt->BitsPerPixel); char buf[256]; - RTPrintf("Video driver SDL_VIDEODRIVER / active: %s/%s\n", getenv("SDL_VIDEODRIVER"), + RTPrintf("Video driver SDL_VIDEODRIVER / active: %s/%s\n", RTEnvGet("SDL_VIDEODRIVER"), SDL_VideoDriverName(buf, sizeof(buf))); RTPrintf("\n" |
