1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix selection of current resolution

This commit is contained in:
Ivan Savenko 2023-03-07 15:35:04 +02:00
parent 674711c959
commit 76927cf434

View File

@ -170,7 +170,7 @@ void GeneralOptionsTab::selectGameResolution()
for(const auto & it : selectableResolutions)
{
auto resolutionStr = resolutionToEntryString(it.x, it.y);
if(widget<CLabel>("resolutionLabel")->getText() == resolutionStr)
if(widget<CLabel>("resolutionLabel")->getText() == resolutionToLabelString(it.x, it.y))
currentResolutionIndex = i;
items.push_back(std::move(resolutionStr));