mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
fullscreen only blocked on OS X when not using SDL 1.2.15 (untested)
This commit is contained in:
@@ -5,6 +5,11 @@
|
|||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SDL_INC
|
||||||
|
#include "SDL/SDL.h"
|
||||||
|
#else
|
||||||
|
#include "SDL.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "OptionsView.h"
|
#include "OptionsView.h"
|
||||||
#include "gui/Style.h"
|
#include "gui/Style.h"
|
||||||
@@ -162,7 +167,7 @@ OptionsView::OptionsView():
|
|||||||
FullscreenAction(OptionsView * v_){ v = v_; }
|
FullscreenAction(OptionsView * v_){ v = v_; }
|
||||||
virtual void ActionCallback(ui::Checkbox * sender)
|
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");
|
ErrorMessage::Blocking("Error", "fullscreen doesn't work on OS X");
|
||||||
#else
|
#else
|
||||||
v->c->SetFullscreen(sender->GetChecked());
|
v->c->SetFullscreen(sender->GetChecked());
|
||||||
|
Reference in New Issue
Block a user