Fix comparison of video modes (#1555)

This commit is contained in:
httpdigest 2019-08-31 02:44:04 +02:00
parent 2c7ef5b480
commit 5bac405018

View File

@ -56,6 +56,10 @@ static int compareVideoModes(const void* fp, const void* sp)
if (farea != sarea)
return farea - sarea;
// Then sort on width
if (fm->width != sm->width)
return fm->width - sm->width;
// Lastly sort on refresh rate
return fm->refreshRate - sm->refreshRate;
}