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:
parent
674711c959
commit
76927cf434
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user