Commit 1918be71 authored by hybrid's avatar hybrid

Removed hw_surface and added SDL variables.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2317 dfc29bdd-3216-0410-991c-e03cc46cb475
parent db988e35
......@@ -57,7 +57,7 @@ const char* wmDeleteWindow = "WM_DELETE_WINDOW";
//! constructor
CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
: CIrrDeviceStub(param),
Screen((SDL_Surface*)param.WindowId), SDL_Flags(SDL_HWSURFACE|SDL_ANYFORMAT),
Screen((SDL_Surface*)param.WindowId), SDL_Flags(SDL_ANYFORMAT),
MouseX(0), MouseY(0), MouseButtonStates(0),
Width(param.WindowSize.Width), Height(param.WindowSize.Height),
Close(0), Resizable(false),
......@@ -79,6 +79,15 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
Close = 1;
}
#if defined(_IRR_WINDOWS_)
SDL_putenv("SDL_VIDEODRIVER=directx");
#elif defined(_IRR_OSX_PLATFORM_)
SDL_putenv("SDL_VIDEODRIVER=Quartz");
#else
SDL_putenv("SDL_VIDEODRIVER=x11");
#endif
// SDL_putenv("SDL_WINDOWID=");
SDL_VERSION(&Info.version);
SDL_GetWMInfo(&Info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment