Jump to content


Photo

DLL to Resize and maximize GM5 window?


  • Please log in to reply
9 replies to this topic

#1 PHL

PHL

    GMC Member

  • GMC Member
  • 170 posts

Posted 19 June 2011 - 04:59 PM

Hello.

Game Maker 5 does not let you resize the window by dragging the borders, and the maximize button cannot be used(it is inactive).

a) Is there a DLL to let one resize the game window(along with its contents) ?
B) Is there a DLL to enable the Maximize button ?
c) Is there a DLL to maintain the window's aspect ratio when the window is resized using the DLL in a) ?

Thank you.

Edited by PHL, 19 June 2011 - 05:03 PM.

  • 0

#2 misturx

misturx

    GMC Member

  • GMC Member
  • 73 posts
  • Version:GM:Studio

Posted 19 June 2011 - 09:34 PM

Here is the dll to maximize the gm5 game window. I included a gm5 example file.


Download gm5_maximize_dll.zip from Host-A
  • 0

#3 PHL

PHL

    GMC Member

  • GMC Member
  • 170 posts

Posted 20 June 2011 - 06:37 PM

Here is the dll to maximize the gm5 game window. I included a gm5 example file.


Download gm5_maximize_dll.zip from Host-A


Thank you for it. It does not resize the window, but it does maximize window (as it is called).

But a problem : when I set the window to full screen and back to original size, the restore button disappears and the window remains maximized.

Thank you still. Which programing language did you use to make the DLL ?
  • 0

#4 misturx

misturx

    GMC Member

  • GMC Member
  • 73 posts
  • Version:GM:Studio

Posted 21 June 2011 - 03:51 AM

As I said in the readme I did not make the dll only the gm5 example. I wouldn't be able to say which programming language it was made with.
  • 0

#5 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 21 June 2011 - 04:17 PM

Why are you using Game Maker 5?
  • 2

#6 PHL

PHL

    GMC Member

  • GMC Member
  • 170 posts

Posted 22 June 2011 - 06:20 PM

Why are you using Game Maker 5?

Because with later versions you get "unable to initialize drawing surfaces. check your graphics card" message often on certain computers. But Game Maker 5 never does that. I want my games to run well on older machines too, not only the latest most powerful computers.
  • 0

#7 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 22 June 2011 - 06:24 PM


Why are you using Game Maker 5?

Because with later versions you get "unable to initialize drawing surfaces. check your graphics card" message often on certain computers. But Game Maker 5 never does that. I want my games to run well on older machines too, not only the latest most powerful computers.

Game Maker's system requirements are really low. You shouldn't encourage people to keep junk.

It's like making your website IE6 compatible. Don't let them use it.
  • 3

#8 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 23 June 2011 - 08:09 AM

Because with later versions you get "unable to initialize drawing surfaces. check your graphics card" message

This error massage is only possible if you have REALLY bad hardware.

not only the latest most powerful computers.

That's a very big overstatement. You actually can't buy a PC today (or in the last 3 years or even more) with which this error would show. For this error to happen you need 16mb video ram or a graphics card that only supports directx6. So you can buy a PC for 100$ and still don't get the error massage.

Also, as far as I remember this error showed only when surfaces were used. If they weren't, then it didn't show, thus you could still use newer GM.
  • 0

#9 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 24 June 2011 - 10:48 PM

Also, as far as I remember this error showed only when surfaces were used. If they weren't, then it didn't show, thus you could still use newer GM.

That's not true. GM6.0+ uses surfaces for all drawing, so even if you don't explicitly use the surface functions, it still initializes surfaces. Leading to that error if your computer is complete crap.

Seriously, my mother still has a 2002 Compaq computer with Windows XP and only 500MB of RAM (which, for a desktop, is just sad). Even that wouldn't cause this error (although I have seen GM programs crash on it when creating large surfaces).

-IMP ;) :)
  • 0

#10 Ogg

Ogg

    GMC Member

  • GMC Member
  • 54 posts

Posted 28 June 2011 - 01:11 AM

I can make a DLL for this but I do not have game maker so I won't be able to test if it works properly. If you're willing to be a guinea pig I will make it for you! :)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users