1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Mac OSX window_set_fullscreen() not working in OSX?

Discussion in 'Legacy GameMaker Community Tech Support' started by FredFredrickson, Sep 15, 2017.

  1. FredFredrickson

    FredFredrickson Member GMC Elder

    Joined:
    Jun 21, 2016
    Posts:
    120
    Pretty simple really - I have a function in my game that works on Windows, but seems to do nothing when I run it in OS X. The code looks like this:
    Code:
    if (window_get_fullscreen()){
        window_set_fullscreen(false);
        } else {
        window_set_fullscreen(true);
        }
    Weirdly, window_get_fullscreen() seems to think that the game is still actually toggling between fullscreen and not, as inserting debug messages into this code shows that it does, in fact, try to toggle states.

    Am I missing something here? Does window_set_fullscreen() not work on OSX? Would appreciate some help!
     
  2. hogwater

    hogwater Member

    Joined:
    Jun 22, 2017
    Posts:
    635
    I believe the manual says that in order for this function to...function on OSX the "start in fullscreen" option must be enabled. Something to that effect.
     
  3. M.S.T.O.P.

    M.S.T.O.P. Member

    Joined:
    Jun 22, 2016
    Posts:
    9
    I just tested a bunch of different combinations of options in the GGS and I found the ones that allow window_set_fullscreen to work in macOS.

    These options must be checked:
    • "Allow the player to resize the window"
    • "Start in fullscreen mode" OR "Allow switching to fullscreen" OR both.
    This was tested on both GM:S 1.4.1773 and GMS 2.1.2.257 Runtime 2.1.2.172 with macOS Sierra.
     
    Mick likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice