File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments