Bug: Full Screen at the start

About Monkey 2 Forums Monkey 2 Development Bug: Full Screen at the start

This topic contains 5 replies, has 4 voices, and was last updated by  therevills 1 year, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10856

    therevills
    Participant

    When I execute the following code in Windows the screen isnt centered in full screen mode, if I press alt-enter to enter window mode it ends full screen and displays the window in the middle of the screen and then full screen is okay:

    [/crayon]
    #10858

    DruggedBunny
    Participant

    Confirmed same here — 1.1.0.7 itch.io version.

    Screenshot shows uncleared grey area, too, which goes away when windowed/re-fullscreened.

    Attachments:
    #10875

    nerobot
    Participant

    I suppose it’s incorrect to set screen mode inside of constuctor.

    Better way to do it when window done with layout.

    #10877

    Mark Sibly
    Keymaster

    Hmm, seems like it should work to me and could be an SDL thing. Will have a look.

    #10878

    Mark Sibly
    Keymaster

    I think it’s an SDL/windows thing. This fixes it for me:

    (Note: you should be able to just go ‘App.Idle+=BeginFullscreen’ but that doesn’t work right now due to a bug I just fixed!)

    This effectively delays the call to BeginFullscreen until the next ‘batch’ of OS events has been processed. I’m not 100% sure why this necessary but I will keep looking.Worse case, I can just implement this ‘delay’ actually inside BeginFullscreen.

    #10882

    therevills
    Participant

    @nerobot – yeah that was my first thought, but its fugly and it would be so much nicer to do it in the CTOR.

    @Mark – look forward to the fix 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.