Resolution Options don't load properly in the Settings Menu
Created by: pizza2004
When I open the graphics settings I expect it to give me a list of resolutions that I can use in fullscreen on my computer. However, it instead gives me the entire list of resolutions from the resolutions list without actually checking to see if it's possible to use them on my computer.
I checked the code and found this snippet of code that loads the resolutions:
mpResolutionSelection->setList( ResolutionsList, NUM_MAIN_RESOLUTIONS ); std::string resStr; resStr = itoa(mUserVidConf.m_DisplayRect.w); resStr += "x"; resStr += itoa(mUserVidConf.m_DisplayRect.h); mpResolutionSelection->setSelection(resStr);
And as you can see it just loads them directly from the file without checking them first. I did however use some print outputs to check and sure enough it does still check to see what resolutions it can use, it just doesn't adjust the list it shows you accordingly anymore.