Skip to content

Commit

Permalink
fix renderer trying to use SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Dec 19, 2015
1 parent 2725a32 commit c73d81b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/options/OptionsView.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
};
Expand Down

0 comments on commit c73d81b

Please sign in to comment.