Ferrous Moon
http://www.ferrousmoon.com:80/forums/

Support for different screen ratios
http://www.ferrousmoon.com:80/forums/viewtopic.php?f=9&t=668
Page 1 of 1

Author:  Spectere [Fri May 12, 2006 2:00 pm ]
Post subject:  Support for different screen ratios

I finally got around to buying the Dev CD yesterday and started playing around with the code. I noticed that Uplink doesn't have any problems adapting the interface to other screen ratios, like 16:10 (the one that my laptop uses).

What are the odds that something like this can be added to Onlink? The modification that I did was extremely simple, requiring only a few small changes in graphicoptions_interface.cpp, yet it worked perfectly (I didn't test it extensively, to be honest, but everything seemed to line up fine).

The best way that I can see it working, due to the rather modest amount of space, is to have a ratio selection to the left of the resolution selection options (with 4:3, 5:4, 16:9, and 16:10). When that is clicked, the resolution list changes to the appropriate resolutions (obviously).

Here is a good range of resolutions for each ratio (can't think of any other common 5:4 ratios...sorry):

4:3
640x480
800x600
1024x768
1152x864
1280x960
1450x1050
1600x1200

5:4
1280x1024

16:9
1280x720
1600x900
1920x1080

16:10
1280x800
1440x900
1600x1000
1920x1200

So whatcha'll think? :3

Author:  Burningmace [Mon May 15, 2006 12:40 pm ]
Post subject: 

I think there's a better way of doing it.

It wouldn't be too hard to set up display mode enumeration in the game. That way, only the supported resolutions are displayed.

Some code for C++ here...

http://www.codeproject.com/system/enum_ ... _modes.asp

It's using the EnumDisplaySettings API. Not sure how this could be ported to Linux/Mac versions... anyone know if there are equivilent APIs for those OS'es?

[EDIT]
Ah yes, here we are.
Clicky.

OpenGL way of doing it :)

Page 1 of 1 All times are UTC-05:00
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/