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


Pages: 1

NobodyX

  • 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


rob1221

  • 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 »


NobodyX

  • 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


rob1221

  • 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


Pages: 1

Details

  • Reported
    March 30, 2018, 03:04:33 pm
  • Updated
    April 13, 2018, 11:02:47 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Confirmed
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments


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

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