Add support for monochrome mode:
- EGA and VGA mode 0x0F (implement plane masking in the attribute controller) - re-factor EGA monitor emulation (attribute controller bit is used to detect monochrome mode, horizontal frequency to choose 16/64 colors) Hardware blinking in graphics mode is still not supported. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3813
This commit is contained in:
parent
2fea508f7f
commit
81226995de
5 changed files with 108 additions and 37 deletions
|
@ -427,6 +427,10 @@ void VGA_DAC_CombineColor(Bit8u attr,Bit8u pal);
|
|||
void VGA_DAC_SetEntry(Bitu entry,Bit8u red,Bit8u green,Bit8u blue);
|
||||
void VGA_ATTR_SetPalette(Bit8u index,Bit8u val);
|
||||
|
||||
typedef enum {CGA, EGA, MONO} EGAMonitorMode;
|
||||
|
||||
void VGA_ATTR_SetEGAMonitorPalette(EGAMonitorMode m);
|
||||
|
||||
/* The VGA Subfunction startups */
|
||||
void VGA_SetupAttr(void);
|
||||
void VGA_SetupMemory(Section* sec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue