[Bug 3475] Aspect ratio menu entry

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sun Dec 16 04:41:11 EST 2007


http://bugzilla.icculus.org/show_bug.cgi?id=3475





------- Comment #1 from Jayschwa at Gmail.com  2007-12-16 04:41 EDT -------
Created an attachment (id=1621)
 --> (http://bugzilla.icculus.org/attachment.cgi?id=1621&action=view)
Aspect ratio menu item patch

This patch:
1) Adds a menu item for aspect ratio.
2) Converts existing instances of strcmp() to Q_stricmp().
3) Renames "Video Modes" to "Resolutions" (which is more intuitive and common).

I am willing to make adjustments if requested (discarding that 3rd part, for
example)

I hope that the code is straight forward, but in a nutshell, here's what it
does:
1) A list of possible aspect ratios is built by parsing the resolution list.
2) Each aspect ratio has a corresponding resolution index (the smallest
resolution for that aspect ratio, due to how the resolution sorting was already
setup). When the aspect ratio menu item is changed, the resolution menu item
will change to the beginning of that aspect ratio grouping.
3) Each resolution has a corresponding ratio index. When the resolution menu
item is changed by the user, the aspect ratio menu item will update
accordingly.
4) By default, aspect ratios will be presented in the form "X.YYY:1", but
common ratios can be specified in a string array so they are renamed and look a
bit more friendly. For instance, "1.333:1" becomes "4:3".


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list