Skip to content

Commit

Permalink
add HDTV resolutions to modelist as well as 720x480.
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jan 21, 2015
1 parent 623f5b0 commit 652f302
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/ints/int10_modes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ VideoModeBlock ModeList_VGA[]={

// Some custom modes

// 720x480 3:2 modes
{ 0x21B ,M_LIN4 ,720 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,132 ,525 ,106 ,480 ,0 },
{ 0x21C ,M_LIN8 ,720 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,132 ,525 ,106 ,480 ,0 },
{ 0x21D ,M_LIN15 ,720 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,525 ,212 ,480 ,0 },
{ 0x21E ,M_LIN16 ,720 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,525 ,212 ,480 ,0 },
{ 0x21F ,M_LIN32 ,720 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,132 ,525 ,106 ,480 ,0 },

// 848x480 16:9 modes
{ 0x220 ,M_LIN4 ,848 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,132 ,525 ,106 ,480 ,0 },
{ 0x221 ,M_LIN8 ,848 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,132 ,525 ,106 ,480 ,0 },
Expand Down Expand Up @@ -206,6 +213,20 @@ VideoModeBlock ModeList_VGA[]={
{ 0x23b ,M_LIN16 ,1600,1200,200,75 ,8 ,16 ,1 ,0xA0000 ,0x10000,500 ,1240,400 ,1200,0 },
{ 0x23c ,M_LIN32 ,1600,1200,200,75 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,1240,200 ,1200,0 },

// 1280x720 16:9 modes
{ 0x23D ,M_LIN4 ,1280,720 ,160,45 ,8 ,16 ,1 ,0xA0000 ,0x10000,176 ,792 ,160 ,720 ,0 },
{ 0x23E ,M_LIN8 ,1280,720 ,160,45 ,8 ,16 ,1 ,0xA0000 ,0x10000,176 ,792 ,160 ,720 ,0 },
{ 0x23F ,M_LIN15 ,1280,720 ,160,45 ,8 ,16 ,1 ,0xA0000 ,0x10000,352 ,792 ,320 ,720 ,0 },
{ 0x240 ,M_LIN16 ,1280,720 ,160,45 ,8 ,16 ,1 ,0xA0000 ,0x10000,352 ,792 ,320 ,720 ,0 },
{ 0x241 ,M_LIN32 ,1280,720 ,160,45 ,8 ,16 ,1 ,0xA0000 ,0x10000,176 ,792 ,160 ,720 ,0 },

// 1920x1080 16:9 modes
{ 0x242 ,M_LIN4 ,1920,1080,240,67 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,1188,240 ,1080,0 },
{ 0x243 ,M_LIN8 ,1920,1080,240,67 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,1188,240 ,1080,0 },
{ 0x244 ,M_LIN15 ,1920,1080,240,67 ,8 ,16 ,1 ,0xA0000 ,0x10000,528 ,1188,480 ,1080,0 },
{ 0x245 ,M_LIN16 ,1920,1080,240,67 ,8 ,16 ,1 ,0xA0000 ,0x10000,528 ,1188,480 ,1080,0 },
{ 0x246 ,M_LIN32 ,1920,1080,240,67 ,8 ,16 ,1 ,0xA0000 ,0x10000,264 ,1188,240 ,1080,0 },

{0xFFFF ,M_ERROR ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0x00000 ,0x0000 ,0 ,0 ,0 ,0 ,0 },
};

Expand Down

0 comments on commit 652f302

Please sign in to comment.