Skip to content

Commit 0e34454

Browse files
committed
Refactor CSettings class
1 parent 0f99d18 commit 0e34454

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Client/core/CSettings.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,16 +1692,6 @@ struct ResolutionData
16921692
int depth;
16931693
int vidMode;
16941694
bool isWidescreen;
1695-
1696-
bool operator==(const ResolutionData& other) const
1697-
{
1698-
return width == other.width && height == other.height && depth == other.depth;
1699-
}
1700-
1701-
int getPixelCount() const
1702-
{
1703-
return width * height;
1704-
}
17051695
};
17061696

17071697
//
@@ -1757,7 +1747,7 @@ void CSettings::PopulateResolutionComboBox()
17571747
bool bDuplicate = false;
17581748
for (const auto& existing : resolutions)
17591749
{
1760-
if (existing == resData)
1750+
if (existing.width == resData.width && existing.height == resData.height && existing.depth == resData.depth)
17611751
{
17621752
bDuplicate = true;
17631753
break;

0 commit comments

Comments
 (0)