The Daily Click ::. Forums ::. Klik Coding Help ::. Disable "Resize display to fill window size" during runtime?
 

Post Reply  Post Oekaki 
 

Posted By Message

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
15th January, 2015 at 15/01/2015 22:54:12 -

Y'know that option under the application's Window properties that stretches the game's display to the dimensions of the window it's in? Is there a way to disable/enable that while the game is running? I checked all the actions in "storyboard controls" and anything the Window Control Object could do, but haven't had any luck.

Is it possible? Is there an extension somewhere that can do it?

 
Go Moon!

nim



Registered
  17/05/2002
Points
  7234
16th January, 2015 at 16/01/2015 14:06:38 -

Not as far as I know. I'd also like to know if this is possible. The Ultimate Fullscreen object might give you some flexibility there.

 
//

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
16th January, 2015 at 16/01/2015 17:00:01 -

Doesn't look like that extension does it. It gives a lot of control over fullscreen settings, but that's it.

So, it looks like I've run into this problem before (I found an old project where I needed to mess with the window size while the graphics were stretched) and it looks like I just used the Viewport Object instead of the "Resize display" option in order to resize things. It's kind of a cheap workaround, though. But it's the only one I've got right now.

 
Go Moon!

nim



Registered
  17/05/2002
Points
  7234
16th January, 2015 at 16/01/2015 22:26:08 -

Good to know that it's possible somehow! I've never used that object before - thanks for the tip

 
//

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1341

VIP MemberStarSnow
18th January, 2015 at 18/01/2015 21:26:55 -

Pretty sure the Ultimate Full Screen object would allow you to change the game's display scale at runtime, but you'll need to use floating point numbers. If I wasn't in brain fart mode, I'd probably be able to think up some equation that sets a bordered full-screen display based off of a percentage of either the original frame resolution or the screen size. Drawback is the white background color can't be modified... I don't think.

Edit: I just tried it out in MMF2 and was able to emulate a frame border and resize the display while holding control and using the mouse wheel - all in full-screen mode.

Edited by The_Antisony

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?
   

Post Reply



 



Advertisement

Worth A Click