Skip to content

Commit

Permalink
displayid: Update some display mode info.
Browse files Browse the repository at this point in the history
  • Loading branch information
joevt authored and dingusdev committed May 5, 2024
1 parent 86d8ae0 commit fdf8543
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions devices/video/displayid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ typedef struct {
const char * apple_enum;
const char * name;
const char * description;
MonitorRes resolutions[4];
MonitorRes resolutions[10];
} MonitorInfo;

/** Mapping between monitor IDs and their sense codes. */
Expand Down Expand Up @@ -100,7 +100,8 @@ static const std::map<std::string, MonitorInfo> MonitorIdToCode = {
4, 0x0A,
"kESCFourNTSC",
"NTSC",
"NTSC underscan 512x384, overscan", {
"", {
{ 512, 384, 12.2727, 15.7 , 59.94},
{ 640, 480, 12.2727, 15.7 , 59.94}
}
}},
Expand All @@ -109,37 +110,40 @@ static const std::map<std::string, MonitorInfo> MonitorIdToCode = {
"kESCFivePortrait",
"Portrait RGB",
"RGB 15\", 15\" Tilt", {
{ 640, 870, 57.2834, 0 , 0 }
{ 640, 870, 57.2834, 0 , 75 }
}
}},
{ "Multiscan15in", {
6, 0x03,
"kESCSixMSB1",
"MultiScan Band-1 (12\" thru 16\")",
"Multiple Scan 13, 14\"", {
{ 640, 480, 67 , 0 , 0 },
{ 832, 624, 75 , 0 , 0 }
{ 640, 480, 0 , 0 , 67 },
{ 832, 624, 0 , 0 , 75 }
}
}},
{ "Multiscan17in", {
6, 0x0B,
"kESCSixMSB2",
"MultiScan Band-2 (13\" thru 19\")",
"Multiple Scan 16, 17\"", {
{ 640, 480, 67 , 0 , 0 },
{ 832, 624, 75 , 0 , 0 },
{1024, 768, 75 , 0 , 0 }
{ 640, 480, 0 , 0 , 67 },
{ 832, 624, 0 , 0 , 75 },
{1024, 768, 0 , 0 , 75 }
}
}},
{ "Multiscan20in", {
6, 0x23,
"kESCSixMSB3",
"MultiScan Band-3 (13\" thru 21\")",
"Multiple Scan 20, 21\"", {
{ 640, 480, 67 , 0 , 0 },
{ 832, 624, 75 , 0 , 0 },
{1024, 768, 75 , 0 , 0 },
{1152, 870, 75 , 0 , 0 }
{ 640, 480, 0 , 0 , 67 },
{ 640, 480, 0 , 0 ,120 }, // control; not platinum
{ 832, 624, 0 , 0 , 75 },
{1024, 768, 0 , 0 , 74.9 },
{1152, 870, 0 , 0 , 75 },
{1280, 960, 0 , 0 , 75 },
{1280,1024, 0 , 0 , 75 }
}
}},
{ "HiRes12-14in", {
Expand All @@ -164,17 +168,25 @@ static const std::map<std::string, MonitorInfo> MonitorIdToCode = {
"kESCSevenNTSC",
"NTSC",
"NTSC w/convolution (Alternate)", {
{ 640, 480, 12.2727, 0 , 0 }
{ 512, 384, 12.2727, 0 , 60 },
{ 640, 480, 12.2727, 0 , 60 }
}
}},
{ "VGA-SVGA", {
7, 0x17,
"kESCSevenVGA",
"VGA",
"VGA", {
{ 640, 480, 25.175 , 31.47 , 59.95},
{ 800, 600, 36 , 35.16 , 56 },
{1024, 768, 35.16 , 60 }
{ 640, 480, 0 , 0 , 60 },
{ 640, 480, 0 , 0 ,120 }, // control; not platinum
{ 800, 600, 0 , 0 , 60 },
{ 800, 600, 0 , 0 , 72 },
{ 800, 600, 0 , 0 , 75 },
{1024, 768, 0 , 0 , 60 },
{1024, 768, 0 , 0 , 70 },
{1024, 768, 0 , 0 , 75 },
{1280, 960, 0 , 0 , 75 },
{1280,1024, 0 , 0 , 75 }
}
}},
{ "MacRGB16in", {
Expand All @@ -199,7 +211,7 @@ static const std::map<std::string, MonitorInfo> MonitorIdToCode = {
"kESCSeven19Inch",
"Third-Party 19",
"RGB 19\", 19\" Color", {
{1024, 768, 80 , 0 , 0 }
{1024, 768, 80 , 0 , 74.9 }
}
}},
{ "DDC", {
Expand Down

0 comments on commit fdf8543

Please sign in to comment.