Permalink
Browse files

fullscreen only blocked on OS X when not using SDL 1.2.15 (untested)

  • Loading branch information...
jacob1 committed Oct 23, 2015
1 parent d0cf82d commit 46dc5da455e9bf72e644e5e1ad31951688947edf
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gui/options/OptionsView.cpp
@@ -5,6 +5,11 @@
#else
#include <unistd.h>
#endif
#ifdef SDL_INC
#include "SDL/SDL.h"
#else
#include "SDL.h"
#endif
#include "OptionsView.h"
#include "gui/Style.h"
@@ -162,7 +167,7 @@ OptionsView::OptionsView():
FullscreenAction(OptionsView * v_){ v = v_; }
virtual void ActionCallback(ui::Checkbox * sender)
{
#ifdef MACOSX
#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());

0 comments on commit 46dc5da

Please sign in to comment.