fix renderer trying to use SDL

This commit is contained in:
jacob1 2015-12-19 16:36:17 -05:00
parent 2725a32b8e
commit c73d81b277

View File

@ -5,11 +5,13 @@
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif
#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
#include "OptionsView.h" #include "OptionsView.h"
#include "gui/Style.h" #include "gui/Style.h"
@ -167,10 +169,12 @@ OptionsView::OptionsView():
FullscreenAction(OptionsView * v_){ v = v_; } FullscreenAction(OptionsView * v_){ v = v_; }
virtual void ActionCallback(ui::Checkbox * sender) virtual void ActionCallback(ui::Checkbox * sender)
{ {
#ifdef USE_SDL
#if defined(MACOSX) && !SDL_VERSION_ATLEAST(1, 2, 15) #if defined(MACOSX) && !SDL_VERSION_ATLEAST(1, 2, 15)
ErrorMessage::Blocking("Error", "fullscreen doesn't work on OS X"); ErrorMessage::Blocking("Error", "fullscreen doesn't work on OS X");
#else #else
v->c->SetFullscreen(sender->GetChecked()); v->c->SetFullscreen(sender->GetChecked());
#endif
#endif #endif
} }
}; };