Permalink
Browse files

fix compile error with renderer

  • Loading branch information...
jacob1 committed Apr 1, 2016
1 parent 5832e27 commit 0fbb3bb27f54afd030b6df686f40b80880a3ca26
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/options/OptionsController.cpp
@@ -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;

0 comments on commit 0fbb3bb

Please sign in to comment.