Last visit was: It is currently Fri Mar 29, 2024 7:37 am


All times are UTC-05:00




Post new topic Reply to topic  [2 posts ] 
    Author Message
     Post subject:Support for different screen ratios
    PostPosted:Fri May 12, 2006 2:00 pm 
     

    Joined:Wed May 10, 2006 7:53 am
    Posts:3
    Website:http://www.spectere.net/
    Location:Struthers, OH
    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


    Top
    Offline  
     Post subject:
    PostPosted:Mon May 15, 2006 12:40 pm 
    User avatar
     

    Joined:Mon Mar 07, 2005 9:32 am
    Posts:600
    Location:localhost
    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 :)

    _________________
    BAZINGA.


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 27 guests


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova