mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-08 00:14:00 +02:00
fix compile error with renderer
This commit is contained in:
parent
5832e27459
commit
0fbb3bb27f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user