mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 01:38:45 +00:00
Fixed: sort screen modes by width, height and frequency
This commit is contained in:
parent
68e9af06f5
commit
6b818235a4
1 changed files with 6 additions and 1 deletions
|
@ -286,7 +286,12 @@ struct CModeSorter
|
|||
{
|
||||
bool operator()(const UDriver::CMode &mode1, const UDriver::CMode &mode2) const
|
||||
{
|
||||
if (mode1.Width == mode2.Width) return mode1.Height < mode2.Height;
|
||||
if (mode1.Width == mode2.Width)
|
||||
{
|
||||
if (mode1.Height == mode2.Height) return mode1.Frequency < mode2.Frequency;
|
||||
|
||||
return mode1.Height < mode2.Height;
|
||||
}
|
||||
|
||||
return mode1.Width < mode2.Width;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue