Bug Issue: size of drawn things are messed up when you switch fullscreen

Pages: 1


  • Master Stencyler
  • *
March 30, 2018, 03:04:33 pm
Windows b9835

Aaaah I typed a long post and it was really convoluted and confusing trying to explain the details of what happens, and then I realized the root of the problem I think.

It was changed so that if something in "when drawing" is unchanged, then it won't redraw it every frame, right? So now when you switch between fullscreen, everything that isn't redrawn stays the same size which makes it wrong.

Also I don't know if this is the same issue or a separate one, but in the second attachment it shows when you enter fullscreen the background colour is the wrong size too. But weirdly it doesn't happen in every scene.

New attachment added by NobodyX - March 30, 2018, 03:05:01 pm

New attachment added by NobodyX - March 30, 2018, 03:05:07 pm

Issue updated by Justin - April 09, 2018, 10:45:10 am
  • Tags added: scaling


  • Master Stencyler
  • *
April 11, 2018, 02:50:54 pm
Fixed the font size issue in b9854.  It was due to Stencyl's font cache not taking into account the engine scale.

So far I haven't noticed any issues with the backgrounds in the couple game of mine that I've tested.  Do you have a sample game reproducing the background issue?
« Last Edit: April 11, 2018, 02:53:28 pm by rob1221 »


  • Master Stencyler
  • *
April 12, 2018, 10:38:36 am
None of it that I've experienced is fixed in build 9855 actually.

It's everything that's drawn that's the problem, not just the text.

I created a simple test game and the background issue didn't happen at first until I turned off all the scale but 1 under Settings > Desktop.

When you try the test game, Z toggles fullscreen, X changes the text that's being drawn.

Everything behaves in tons of different ways depending on scale modes on/off and windows/flash so I'll write it out like this:

Desktop, extra scales OFF:
-background shrinks
-text and rectangle shrinks in windowed > fullscreen, becomes proper size relative to the rest of the game again if you change what's being drawn, after you do that and then and go from fullscreen > windowed then text and rectangle is too big
...or in other words:
---changing what's drawn makes it always the correct size
---if you toggle fullscreen then what's drawn will stay the same size which will make it wrong relative to the rest.

Desktop, extra scales ON:
-background normal
-only text shrinks in fullscreen
-rectangle is fine
-and nothing changes if you change what's being drawn

Flash, extra scales OFF:
-everything's the proper size always

Flash, extra scales ON:
-everything same as Desktop, extra scales ON

Also a bunch of different stuff happens with text being blurry under certain conditions, but with all the factors including it being different sometimes when going from windowed to fullscreen vs fullscreen to windowed, and maybe something to do with scales under Settings > Advanced (didn't test it but just a guess cause in my main game I have all those turned off and the text is never blurry for Windows) .....then it'd be a massive pain to type out all the combinations or try to figure out when it's blurry or not.
« Last Edit: April 12, 2018, 02:10:08 pm by NobodyX »

New attachment added by NobodyX - April 12, 2018, 10:48:28 am


  • Master Stencyler
  • *
April 13, 2018, 11:02:47 am
The default font scaling is fixed in b9856.  So currently non-Flash platforms don't scale correctly when extra scales are disabled, which I think is due to the drawing buffer changes since switching text rescales both the text and the box.  I'm not sure if the background is also a draw buffer issue.
  • Status changed from New to Confirmed


  • Master Stencyler
  • *
June 18, 2018, 06:32:24 pm
I fixed a bunch of scaling related things just by making it so the asset scale won't normally change when you toggle fullscreen. I tested your game and didn't notice anything off.

If you still notice any issues, feel free to continue this thread.
  • Issue Assigned from (none) to Justin
  • Status changed from Confirmed to Resolved
  • Tags removed: scaling

Pages: 1


  • Reported
    March 30, 2018, 03:04:33 pm
  • Updated
    June 18, 2018, 06:32:24 pm

  • View Status
  • Type
  • Status
  • Priority
  • Version
  • Fixed in
  • Assigned to
  • Category



* drawingscales1.png (13.12 kB, 1058x428 - viewed 602 times.)

* drawingscales2.png (10.51 kB, 1680x1050 - viewed 579 times.)
* testgamescaleproblems.stencyl (746.66 kB - downloaded 297 times.)