Bug Issue: Exit full-screen broken


Pages: 1

FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
October 19, 2018, 09:42:22 am
When exiting full screen the game window stays at fullscreen while the actual scene is resized. Also mouse coordinates are messed up making impossible to press the button again.
See attachments picture for game at full-screen and when toggling back.
Also attaching  a test game showing the issue.
Testing  on Mac using b10049 (same issue on 10014)
I think it's important to point out that in build b9974 enter/exit fullscreen works as supposed.


New attachment added by FMStudioGameDev - October 19, 2018, 09:43:08 am


New attachment added by FMStudioGameDev - October 19, 2018, 09:44:21 am


New attachment added by FMStudioGameDev - October 19, 2018, 09:44:40 am


rob1221

  • Master Stencyler
  • *
October 20, 2018, 12:32:58 pm
Could you try b10050 and see if there is any improvement?  I fixed a bug that caused multiple screen reloads when going into full screen, but I don't know if will have an effect on the issue you're seeing, which I was unable to reproduce on Windows.
  • Status changed from New to Need Info


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
October 21, 2018, 02:12:10 am
Thanks rob but unfortunately the issue persists.
Maybe it's useful to know that the problem happens only the first time you exit from fullscreen. If you manage to revert back next time you go fullscreen and back it reverts correctly.
Same thing if I choose to start the game in fullscreen, it starts with fullscreen window but small game (and block "full-screen enabled" returns false).
« Last Edit: October 21, 2018, 02:12:37 am by FMStudioGameDev »


rob1221

  • Master Stencyler
  • *
October 21, 2018, 08:00:02 am
I do get a delay when going into full screen, and if starting in full screen, the game just shows a black screen for a few seconds which shouldn't happen with a basic test game like this.  I don't get the rendering issue you have but the cause of that and the delay I'm seeing might be the same.

Checking hxScout confirms that either starting in full screen or going into full screen causes a significant delay attributed to OpenFL's rendering code.  This may be something that has to be fixed on their end first.


Ignore this since it seems to be an issue with my new PC and unrelated to recent changes.
  • Status changed from Need Info to New
« Last Edit: November 13, 2018, 11:05:56 am by rob1221 »


New attachment added by rob1221 - October 21, 2018, 08:00:28 am


ezbot

  • Subscriber - Stencyl Studio
  • *
October 24, 2018, 11:27:06 am
I'm experiencing the same issue described here on b10050; exiting fullscreen the first time results in a small game window with the rest of the screen black. It remains that way until I toggle fullscreen back on, then behaves normally. The issue does not exist on b9977.
« Last Edit: October 24, 2018, 11:27:24 am by ezbot »


harshhsrah

  • Subscriber - Stencyl Studio
  • *
October 30, 2018, 03:13:58 am
Added to this there is an issue with labels. Every toggle from full screen to window and vice versa cuts off a bit of the label text for the scene that is being displayed. Once you navigate to another scene and return back everything is back to normal.


rob1221

  • Master Stencyler
  • *
October 30, 2018, 07:34:19 am
Label issue is a confirmed OpenFL bug as reported here: http://community.stencyl.com/index.php?issue=1371.0


harshhsrah

  • Subscriber - Stencyl Studio
  • *
November 02, 2018, 03:05:42 am
Ok..will check out the solution of destry-reattaching the labels.
Will there be a solution for the fullscreen toggle issue?
I tried to crudely work around this by doing a force toggle at the start with a 0.2 second delay so that the first instance of the action is done thereby allowing normal toggle later.
It obviously looks odd but serves the purpose..(see attachment)


New attachment added by harshhsrah - November 02, 2018, 03:06:07 am


Justin

  • Master Stencyler
  • *
November 11, 2018, 06:17:58 am
I'm not seeing an issue here either, with the sample game attached.

Can you upload your game's logs? I'm especially interested in the parts about game scaling. It looks like this:

Code: [Select]
Universal.hx:91: initScreen
Universal.hx:138: Game Width: 480
Universal.hx:139: Game Height: 640
Universal.hx:140: Game Scale: 1
Universal.hx:141: Window Width: 1920
Universal.hx:142: Window Height: 1080
Universal.hx:143: FullScreen Width: 1920
Universal.hx:144: FullScreen Height: 1080
Universal.hx:145: Enabled Scales: [1x]
Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
Universal.hx:248: Theoretical Scale: 1.5
Universal.hx:249: Asset Scale: 1x
Universal.hx:340: Logical Width: 480
Universal.hx:341: Logical Height: 640
Universal.hx:342: Scale X: 1.6875
Universal.hx:343: Scale Y: 1.6875
  • Status changed from New to Need Info
« Last Edit: November 11, 2018, 06:17:52 am by Justin »


Pages: 1

Details

  • Reported
    October 19, 2018, 09:42:22 am
  • Updated
    November 11, 2018, 06:17:58 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Need Info
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    (none)

Tags


Attachments


* Fullscreen.png (111.42 kB, 2880x1800 - viewed 8 times.)

* exit from fullscreen.png (105.06 kB, 2880x1800 - viewed 9 times.)
* testGAme.stencyl (733.39 kB - downloaded 7 times.)

* hxScout.png (47.41 kB, 1557x407 - viewed 12 times.)

* Screen Shot 2018-11-02 at 3.27.33 PM.png (15.94 kB, 273x207 - viewed 5 times.)