Jump to content
The Dark Mod Forums

Aspect ratio question


lowenz

Recommended Posts

I ask because I set tdm_widescreenmode to "0" (same as aspectratio) using a custom 4:3 resolution (1440x1080) but it reverts to "2" after a relaunch.

Also, it's time to add to the menu the customewidth and customheight text field!

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Tels made that cvar to allow more default resolutions as I recall. The code looks for aspectRatio greater than 0 but doesn't seem

to set new aspectRatio?

 

Game_local.cpp

 

 

 

 
void idGameLocal::UpdateScreenResolutionFromGUI(idUserInterface* gui)
{
    if (cvarSystem->GetCVarInteger("r_aspectRatio") > 0)
    {
        // Wide-screen resolution selected in the GUI, set the mode to "custom"
        cvarSystem->SetCVarInteger("r_mode", -1);

        // Set the custom height and width
        int mode = cv_tdm_widescreenmode.GetInteger();

        int width = 1024;
        int height = 600;

        switch (mode)
        {
        case 0:
            width = 1024;
            height = 600;
            break;
        case 1:
            width = 1280;
            height = 800;
            break;
        case 2:
            width = 1440;
            height = 900;
            break;
        case 3:
            width = 1680;
            height = 1050;
            break;
        case 4:
            width = 1920;
            height = 1200;
            break;
        case 5:
            width = 1366;
            height = 768;
            break;
        case 6:
            width = 1280;
            height = 720;
            break;
        case 7:
            width = 1920;
            height = 1080;
            break;
        case 8:
            width = 2560;
            height = 1440;
            break;
        case 9:
            width = 2560;
            height = 1600;
            break;
        case 10:
            width = 1280;
            height = 1024;
            break;
        case 11:
            width = 1800;
            height = 1440;
            break;
        case 12:
            width = 2560;
            height = 2048;
            break;
        case 13:
            width = 1360;
            height = 768;
            break;
        case 14:
            width = 1600;
            height = 900;
            break;
        case 15:
            width = 3280;
            height = 2048;
            break;
        case 16:
            width = 3360;
            height = 2100;
            break;
        case 17:
            width = 3840;
            height = 2160;
            break;
        case 18:
            width = 3840;
            height = 2400;
            break;
        default:
            break;
};
 

 

 

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...