fix compile error with renderer

This commit is contained in:
jacob1 2016-03-31 22:38:28 -04:00
parent 5832e27459
commit 0fbb3bb27f

View File

@ -92,11 +92,13 @@ OptionsView * OptionsController::GetView()
return view; return view;
} }
#ifdef USE_SDL
#ifdef SDL_INC #ifdef SDL_INC
#include "SDL/SDL.h" #include "SDL/SDL.h"
#else #else
#include "SDL.h" #include "SDL.h"
#endif #endif
#endif
void OptionsController::Exit() void OptionsController::Exit()
{ {
if (ui::Engine::Ref().GetWindow() == view) if (ui::Engine::Ref().GetWindow() == view)
@ -104,10 +106,12 @@ void OptionsController::Exit()
ui::Engine::Ref().CloseWindow(); ui::Engine::Ref().CloseWindow();
} }
depth3d = temp_3ddepth; depth3d = temp_3ddepth;
#ifdef USE_SDL
if (depth3d) if (depth3d)
SDL_ShowCursor(0); SDL_ShowCursor(0);
else else
SDL_ShowCursor(1); SDL_ShowCursor(1);
#endif
if (callback) if (callback)
callback->ControllerExit(); callback->ControllerExit();
HasExited = true; HasExited = true;