1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | auto prioritize = [](const mg::DisplayConfigurationOutputType &type) {
using namespace mg::DisplayConfigurationOutputType;
switch(type) {
case lvds:
return 0;
case displayport:
case hdmia:
case hdmib:
return 1;
case dvii:
case dvid:
case dvia:
return 2;
case vga:
return 3;
case ninepindin:
return 4;
case composite:
case svideo:
case component:
return 5;
case tv:
return 6;
case edp:
case unknown:
default:
return 9;
}
|