project-navigation
Personal tools

Author Topic: Additional selectable resolutions for the video menu  (Read 4431 times)

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Additional selectable resolutions for the video menu
« on: May 11, 2010, 07:42:28 pm »
Hey !

I am currently preparing a patch to upgrade the resolutions list & to enhance the comments with ratios & names for the different resolutions...

Initially my intention was just to upgrade the resolutions-list for me, because my desktop-resolution is 1920x1440@85Hz on a old 22" monitor & I wanted to run UFO:AI with the same resolution...
But then I realized that many very important 'mainstream' resolutions where missing, so I added those also ;)

I used this as reference:
http://en.wikipedia.org/wiki/File:Vector_Video_Standards2.svg

Okay. Enough talk. Here are some screens. If you find a important resolution missing, please post it here...

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Additional selectable resolutions for the video menu
« Reply #1 on: May 11, 2010, 08:52:29 pm »
I dont really understand with you post all this screenshots...

Anyway. SDL provide the list of available screen resolutions. That the way it should work. It is not done ATM. Maybe we can add new hard coded resolutions in the game, but we will have ordering problems.

Jobs is:
* reworking the resolution ids (i dont remember, there is useless dependencies, we must remove resolution id, instead id we must use "width" and "height" values)
* using SDL function to generate resolution list
* feature: creating a function to order resolutions

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Additional selectable resolutions for the video menu
« Reply #2 on: May 11, 2010, 09:03:26 pm »
Look bayo, I just was interested in being able to choose the resolution that 'fits' my screen & I thought some people with 1920x1080 pixel & other common TFTs would maybe also want to change their fullscreen resolution to the native one of the TFT without having their gfx interpolated...

If you want to extend or upgrade anything feel free to do it, but I think the patch I already posted would be a start here ;)...

I ordered the resolutions first by their ratio, then by size (from small to big)...

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Additional selectable resolutions for the video menu
« Reply #3 on: May 11, 2010, 09:14:45 pm »
Maybe you are right with the screenshots & this is easier to read:

Code: [Select]
+ { 1280, 1024,  0 }, /*  5: 4, SXGA - Super eXtended Graphics Array */
+ {  320,  240,  1 }, /*  4: 3, QVGA - Quarter Video Graphics Array */
+ {  400,  300,  2 }, /*  4: 3, no name */
+ {  512,  384,  3 }, /*  4: 3, no name */
+ {  640,  480,  4 }, /*  4: 3, VGA - Video Graphics Array */
+ {  768,  576,  5 }, /*  4: 3, PAL - Phase Alternating Line (Analog TV)*/
+ {  800,  600,  6 }, /*  4: 3, SVGA - Super Video Graphics Array */
+ {  960,  720,  7 }, /*  4: 3, no name */
+ { 1024,  768,  8 }, /*  4: 3, XGA - eXtended Graphics Array */
+ { 1152,  864,  9 }, /*  4: 3, XGA+ - eXtended Graphics Array Plus */
+ { 1280,  960, 10 }, /*  4: 3, no name */
+ { 1400, 1050, 11 }, /*  4: 3, SXGA+ - Super eXtended Graphics Array Plus, for example Samsung x20 */
+ { 1600, 1200, 12 }, /*  4: 3, UXGA - Ultra eXtended Graphics Array */
+ { 1920, 1440, 13 }, /*  4: 3, no name */
+ { 2048, 1536, 14 }, /*  4: 3, QXGA - Super Ultra Extended Graphics Array */
+ {  720,  480, 15 }, /*  3: 2, NTSC - National Systems Comittee (Analog TV)*/
+ { 1152,  768, 16 }, /*  3: 2, no name, for example: Apple TiBook */
+ { 1280,  854, 17 }, /*  3: 2, no name, for example: Apple TiBook */
+ { 1440,  960, 18 }, /*  3: 2, no name */
+ {  320,  200, 19 }, /* 16:10, CGA - Color Graphics Adapter */
+ {  640,  400, 20 }, /* 16:10, generic 16:10 widescreen */
+ {  800,  500, 21 }, /* 16:10, as found modern */
+ { 1024,  640, 22 }, /* 16:10, notebooks */
+ { 1280,  800, 23 }, /* 16:10, WXGA - Wide eXtended Graphics Array */
+ { 1440,  900, 24 }, /* 16:10, no name */
+ { 1680, 1050, 25 }, /* 16:10, WSXGA+ - Wide Super eXtended Graphics Array Plus */
+ { 1920, 1200, 26 }, /* 16:10, WUXGA - Wide Ultra eXtended Graphics Array */
+ { 2560, 1600, 27 }, /* 16:10, WQXGA - Wide Super Ultra Extended Graphics Array */
+ {  800,  480, 28 }, /*  5: 3, WVGA - Wide Video Graphics Array */
+ { 1280,  768, 29 }, /*  5: 3, WXGA - Wide eXtended Graphics Array */
+ { 1024,  600, 30 }, /* ??:??, WSVGA - Wide Super Video Graphics Array, for example: EEE PC */
+ {  854,  480, 31 }, /* 16: 9, WVGA - Wide Video Graphics Array */
+ { 1280,  720, 32 }, /* 16: 9, HD 720 - 720p High Definition */
+ { 1366,  768, 33 }, /* 16: 9, no name */
+ { 1920, 1080, 34 }, /* 16: 9, HD 1080 - 1080p High Definition */
+ { 2048, 1080, 35 }, /* 17: 9, 2K */
+ { 1024,  480, 36 }  /* ??:??, no name, for example: Sony VAIO Pocketbook */
« Last Edit: May 11, 2010, 09:18:59 pm by MCR »

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Additional selectable resolutions for the video menu
« Reply #4 on: May 11, 2010, 10:25:36 pm »
The id is the third data on the table. We can't order the list while we have id dependancies.
« Last Edit: May 11, 2010, 10:29:29 pm by bayo »

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Additional selectable resolutions for the video menu
« Reply #5 on: May 13, 2010, 01:57:49 pm »
Mattn already implemented the most elegant solution here...
Great !
@Mattn: Just wanted to close my patch ticket, but you were faster again ;)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Additional selectable resolutions for the video menu
« Reply #6 on: May 13, 2010, 02:00:00 pm »
please report any problems with it (except the too long list ;) )