From 0fbb3bb27f54afd030b6df686f40b80880a3ca26 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 31 Mar 2016 22:38:28 -0400 Subject: [PATCH] fix compile error with renderer --- src/gui/options/OptionsController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/options/OptionsController.cpp b/src/gui/options/OptionsController.cpp index 83a547a0c0..346cf98c34 100644 --- a/src/gui/options/OptionsController.cpp +++ b/src/gui/options/OptionsController.cpp @@ -92,11 +92,13 @@ OptionsView * OptionsController::GetView() return view; } +#ifdef USE_SDL #ifdef SDL_INC #include "SDL/SDL.h" #else #include "SDL.h" #endif +#endif void OptionsController::Exit() { if (ui::Engine::Ref().GetWindow() == view) @@ -104,10 +106,12 @@ void OptionsController::Exit() ui::Engine::Ref().CloseWindow(); } depth3d = temp_3ddepth; +#ifdef USE_SDL if (depth3d) SDL_ShowCursor(0); else SDL_ShowCursor(1); +#endif if (callback) callback->ControllerExit(); HasExited = true;