Permalink
Browse files

Disable fullscreen on OS X

  • Loading branch information...
jacob1 committed Aug 12, 2014
1 parent d435918 commit ae886048f4f81a4672c574ceac4408243f2b6d54
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gui/options/OptionsView.cpp
@@ -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)){
@@ -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", "");

0 comments on commit ae88604

Please sign in to comment.