File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ void ConfigureDisplayResolutions() {
353353 return ;
354354 }
355355
356- std::set<tVideoResolution, tVideoResolution::tVideoResolutionCompare > resolutions;
356+ std::set<tVideoResolution> resolutions;
357357 for (int d = 0 ; d < display_count; d++) {
358358 SDL_DisplayID display_id = displays[d];
359359
Original file line number Diff line number Diff line change @@ -149,17 +149,10 @@ struct tVideoResolution
149149 return other.width == this ->width && other.height == this ->height ;
150150 }
151151
152- struct tVideoResolutionCompare
152+ bool operator <( const tVideoResolution& other) const
153153 {
154- bool operator ()(const tVideoResolution &lres, const tVideoResolution &rres) const
155- {
156- if (lres.width != rres.width )
157- {
158- return lres.width < rres.width ;
159- }
160- return lres.height < rres.height ;
161- }
162- };
154+ return width != other.width ? width < other.width : height < other.height ;
155+ }
163156};
164157
165158extern std::vector<tVideoResolution> Video_res_list;
You can’t perform that action at this time.
0 commit comments