Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - [Resolved] WideScreen Monitor Support for FullScreen Games

Save-Point

Full Version: [Resolved] WideScreen Monitor Support for FullScreen Games
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a request, not for myself, but for general public use. Cheery

Some of you may be aware of this effect. Some of you may not. And some of you may not have this problem.

If you play an RMXP or RMVX game in windowed mode, you can always hit the [ALT]+[ENTER] combination to make your games 'fullscreen'. With the traditionally scaled monitors or screens, your game will look fine. However, players who use a widescreen monitor may receive a squashed or flattened appearance to their game as their monitor tries to fill the screen.

This is dependent on the driver. Not all widescreen monitors squish your games.

What I am asking for is a script (or scripts) for both XP & VX that can detect widescreen displays (or have an on/off togglable flag) that can prevent this effect.

I do not know if this will need an edit of the hidden PLANE or VIEWPORT class or what. But I figure anything for the community...
I have written a reply to a similar request on another forum which you may find helpful:
Zeriab Wrote:You can use GetSystemMetrics in user32 for that.
Ref: http://msdn.microsoft.com/en-us/library/...S.85).aspx

Illustrary code:
Code:
SM_CXSCREEN    =    0
SM_CYSCREEN    =    1

user32 = Win32API.new('user32', 'GetSystemMetrics', ['I'], 'I')

w = user32.call(SM_CXSCREEN)
h = user32.call(SM_CYSCREEN)

p w,h

I hope you can figure out the rest ^_^

*hugs*

*hugs*
- Zeriab
Thanks. Hope to check it out soon.

[Image: huggle.gif]
Checked it out. It indeed allows me to read the 'screen resolution settings' so I can tell if a system is working with a widescreen monitor in difference to a nominally proportioned screen.

Checking out the 'plane' rgss code, there is nothing to change/alter the game's viewport to accommodate the graphics and prevent the flattened look.

As another member told me, it is more akin to a setting in control panel for the monitor in question. And dependent on what monitor, it could be different each time. I would either have to be able to edit the Windows Registry and have a listing for the drivers for each monitor out there or...

I'll probably have a 1-time pop-up flag and 'notice screen' to inform the player about the game's distortion using widescreen monitors with their drivers set to 'fill the window'.