Game Maker Community: Window Resize Crash - Game Maker Community

Jump to content

Novice and intermediate users who are learning GML, or still using Drag & Drop action icons, can get help from more experienced members.

Please READ the Novice Q&A Forum Rules prior to posting. And remember that the General GMC Rules apply here too.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Window Resize Crash

#1 User is offline   Stickdude 

  • GMC Member
  • Group: GMC Member
  • Posts: 69
  • Joined: 04-December 08

Posted 31 March 2009 - 11:15 PM

There is an crash in :) that occurs when the user resizes the window as small as it can go. If the user resizes the window as small as possible, the game freezes and you have to force quit it. :)

Is there any known fix for this bug?

The problem with testing the window width and height is that you can only get the values for the width and height after the user releases the mouse button, meaning that by the time you know the new width and height, the program might already be frozen.


If you know of a solution or dll that might help, please post it.

This post has been edited by Stickdude: 01 April 2009 - 12:32 AM

0

#2 User is offline   Stickdude 

  • GMC Member
  • Group: GMC Member
  • Posts: 69
  • Joined: 04-December 08

Posted 02 April 2009 - 09:59 PM

I am I the only person who is experiencing this issue?

To see for yourself what I am speaking of, try this:

1. Turn Full Scalability and "Let the user resize the game window" on in the Global Game Settings
2. Create an empty room and run it
3. Shrink the window all the way down as low as it can go

You can should be able to see what I mean.

I am not sure if this is a Vista only issue, as the spplication I am developing only works on Vista.

Thank you, and again, if you have a solution please post it. It seems like this issue should be rather commonplace.
0

#3 User is offline   slayer 64 

  • GMC Member
  • Group: GMC Member
  • Posts: 1990
  • Joined: 09-October 07

Posted 02 April 2009 - 10:12 PM

huh, i can't believe it. thats a dumb thing to happen. i tried this code, but it stil freezes. i guess you just can't use full scale and resize.
window_set_size(window_get_width(),max(
window_get_height(),100));

0

#4 User is offline   Stickdude 

  • GMC Member
  • Group: GMC Member
  • Posts: 69
  • Joined: 04-December 08

Posted 02 April 2009 - 11:29 PM

Quote

huh, i can't believe it. thats a dumb thing to happen. i tried this code, but it stil freezes. i guess you just can't use full scale and resize.

Yes, it is very inconvienient. My application is based off of the ability to be scaled, so sadly that is not an option.

Maybe a DLL or a way for the width/height to be updated every step?
0

#5 User is offline   Stickdude 

  • GMC Member
  • Group: GMC Member
  • Posts: 69
  • Joined: 04-December 08

Posted 07 April 2009 - 04:12 PM

Maybe there is no fix in GM7, but it should be quite easy for Mark Overmars to have a variable for the window width and height instead of a get_window_height or get_window_width command in GM8.

It should also be rather easy for someone with experience with DLL's to create about the same thing.

Much credit will be given if a solution is found. (This is a commercial application.)

Thank You in Advance,
Stickdude
0

#6 User is offline   xot 

  • media multimixer
  • Group: Global Moderators
  • Posts: 3476
  • Joined: 07-May 04

Posted 07 April 2009 - 04:23 PM

Wow. Nice endless parade of divide by zero errors (debug mode, locks up in normal mode). GM6 seems to work OK, GM7 went nuts on WinXP. I don't think you are going to find a solution that allows Full Scale and Window Resizing.

Something to try is to turn off "Full scale" and adjust your view size and/or view port manually.

The only other possibility I see is to make a GM6 version and convert it Vista compatibility with Mark's tool if that is important to you (assuming you have GM6 and don't require special GM7 features, which is admittedly doubtful).

This post has been edited by xot: 07 April 2009 - 05:28 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users