VirtualBox

Changeset 11419 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 14, 2008 9:57:38 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34739
Message:

FE/SDL: setenv => RTEnvSet

Location:
trunk/src/VBox/Frontends/VBoxSDL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r11400 r11419  
    140140    /* On some X servers the mouse is stuck inside the bottom right corner.
    141141     * See http://wiki.clug.org.za/wiki/QEMU_mouse_not_working */
    142     setenv("SDL_VIDEO_X11_DGAMOUSE", "0", 1);
     142    RTEnvSet("SDL_VIDEO_X11_DGAMOUSE", "0");
    143143#endif
    144144    rc = SDL_InitSubSystem(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE);
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r11400 r11419  
    5757#include <VBox/log.h>
    5858#include <VBox/version.h>
     59
     60#include <iprt/alloca.h>
     61#include <iprt/assert.h>
     62#include <iprt/env.h>
     63#include <iprt/ldr.h>
    5964#include <iprt/path.h>
     65#include <iprt/runtime.h>
     66#include <iprt/semaphore.h>
    6067#include <iprt/string.h>
    61 #include <iprt/runtime.h>
    62 #include <iprt/assert.h>
    63 #include <iprt/semaphore.h>
    6468#include <iprt/stream.h>
    6569#include <iprt/uuid.h>
    66 #include <iprt/ldr.h>
    67 #include <iprt/alloca.h>
    6870
    6971#include <signal.h>
     
    969971     * events in ProcessKeys().
    970972     */
    971     setenv("SDL_DISABLE_LOCK_KEYS", "1", 1);
     973    RTEnvSet("SDL_DISABLE_LOCK_KEYS", "1");
    972974#endif
    973975
     
    12981300            gfFullscreenResize = true;
    12991301#ifdef VBOXSDL_WITH_X11
    1300             setenv("SDL_VIDEO_X11_VIDMODE", "0", 1);
     1302            RTEnvSet("SDL_VIDEO_X11_VIDMODE", "0");
    13011303#endif
    13021304        }
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp

    r8155 r11419  
    104104    _putenv("SDL_VIDEO_WINDOW_POS=0,0");
    105105#else
    106     setenv("SDL_VIDEO_WINDOW_POS", "0,0", 1);
     106    RTEnvSet("SDL_VIDEO_WINDOW_POS", "0,0");
    107107#endif
    108108
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette