Skip to content

Commit

Permalink
fix compile error with renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 1, 2016
1 parent 5832e27 commit 0fbb3bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/options/OptionsController.cpp
Expand Up @@ -92,22 +92,26 @@ 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)
{
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;
Expand Down

0 comments on commit 0fbb3bb

Please sign in to comment.