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