The Daily Click ::. Forums ::. Klik Coding Help ::. WTF am I doing wrong...window control object and resizing to fill window
 

Post Reply  Post Oekaki 
 

Posted By Message

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 01:42:23 -

Ok...so I have an option to set the screen to be x2 in size. It's a 640*480 window size. No titlebar, no frame, etc. Just the game window at 640*480. 640*480 doubled is 1280*960. When I set the window to 1280*960, the horizontal ratio looks fine: pixels are now doubled horizontally. Vertically it's another story, it looks jagged like it's resizing wrong. What's the deal? Is it a bug in the object or in the resizing option? It's driving me insane.

Thanks!

 
hay

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 01:48:58 -

One thought. Would the overall resolution of the screen have anything to do with this? My laptop is set to 1280*800 (highest res it goes because it's a smaller laptop)

Will MMF not let me set the size to go past 800? Any way I can override it?

 
hay

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
26th August, 2009 at 03:03:08 -

After setting the window size try checking via conditions what the vertical size is. If it is indeed 800 report it to clickteam. Also if you are using HWA that might be part of the problem.

 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
26th August, 2009 at 03:07:50 -

Don't suppose this will help, but this is what I usually use

http://www.box.net/shared/6qeeqokc35

 
n/a

nim



Registered
  17/05/2002
Points
  7234
26th August, 2009 at 03:08:33 -

Sounds like a Windows issue to me. It might automatically resize windows if they're larger than the screen size.

 
//

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 03:29:50 -

UrbanMonk - Good idea. Did a quick counter to compare vertical size and yes it's only 800 instead of 960. Not using HWA, just latest build of MMF2 Dev. I think it's 248?

Adam - I ran your example and it worked! But when I used your exact code in my game, it did the same exact thing and only resized to 800. I even tried running mine in standard instead of DirectX, still did the same.

Nim - I originally thought that also, until Adam's example worked. Not sure now.

Any ideas? This is driving me insane, especailly after the example Adam provided worked fine.

 
hay

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
26th August, 2009 at 03:36:44 -

That is odd,

To alaborate on Adams example (which was a good one btw)

I added code to make it center itself as well (only because I wish everyone would do it)

http://www.jsoftgames.com/Re-size.zip

EDIT: something in your "window settings" is preventing the window from resizing properly. Check all of them to find the problem. I'm thinking the "aspect ratio" one.

EDIT2: Actually regarding nim's post, I think that the only way windows can resize a window is IF it is re-sizable manually as well. Try checking "No thick frame" and see if that fixes it.

EDIT3: Windows disallows windows larger than the current resolution.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/98/Q_21832063.html

Edited by UrbanMonk

 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
26th August, 2009 at 04:12:48 -

Btw the title of this thread... I couldn't stop thinking of this:



Ok, sorry back on topic

 
n/a

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 05:53:11 -


Originally Posted by UrbanMonk
That is odd,

To alaborate on Adams example (which was a good one btw)

I added code to make it center itself as well (only because I wish everyone would do it)

http://www.jsoftgames.com/Re-size.zip

EDIT: something in your "window settings" is preventing the window from resizing properly. Check all of them to find the problem. I'm thinking the "aspect ratio" one.

EDIT2: Actually regarding nim's post, I think that the only way windows can resize a window is IF it is re-sizable manually as well. Try checking "No thick frame" and see if that fixes it.

EDIT3: Windows disallows windows larger than the current resolution.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/98/Q_21832063.html

Man..so it's a windows thing? I tried switching on/off all the various windows settings...nothing seemed to work. There is no aspect ratio choice in regular MMF just HWA, which I'm not using. I appreciate you checking things out though. I'm just kind of dumbfounded because it seems to work in Adam's example. I guess worst case, people with resolutions lower than 800 vertical will miss out. But I kinda presume the standard resolution for standard monitors is 1280*1024. Probably something similar for widescreens.

 
hay

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 05:54:35 -


Originally Posted by -Adam-
Btw the title of this thread... I couldn't stop thinking of this:



Ok, sorry back on topic



hahaha..that clip reminded me of this-



Edited by Chrisbo

 
hay

Chrisbo



Registered
  02/01/2002
Points
  794
26th August, 2009 at 05:59:07 -

You know what...I think I might've been fooled by adam's example, how it keepts the position at x=100. I think it appeared to expand past the screen. But I switched it around to move to 0,0... and it's the same result as what I've been getting. So at least I'm relieved that I"m not crazy BUT...that sucks that it doesn't work.

 
hay
   

Post Reply



 



Advertisement

Worth A Click