Skip to content

Commit

Permalink
Disable fullscreen on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Aug 12, 2014
1 parent d435918 commit ae88604
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/options/OptionsView.cpp
Expand Up @@ -11,6 +11,7 @@
#include "gui/interface/Button.h"
#include "gui/interface/Label.h"
#include "gui/interface/DropDown.h"
#include "gui/dialogues/ErrorMessage.h"

OptionsView::OptionsView():
ui::Window(ui::Point(-1, -1), ui::Point(300, 330)){
Expand Down Expand Up @@ -158,7 +159,14 @@ OptionsView::OptionsView():
OptionsView * v;
public:
FullscreenAction(OptionsView * v_){ v = v_; }
virtual void ActionCallback(ui::Checkbox * sender){ v->c->SetFullscreen(sender->GetChecked()); }
virtual void ActionCallback(ui::Checkbox * sender)
{
#ifdef MACOSX
ErrorMessage::Blocking("Error", "fullscreen doesn't work on OS X");
#else
v->c->SetFullscreen(sender->GetChecked());
#endif
}
};

fullscreen = new ui::Checkbox(ui::Point(8, 230), ui::Point(Size.X-6, 16), "Fullscreen", "");
Expand Down

0 comments on commit ae88604

Please sign in to comment.