Add cga_mono machine
Emulates the user using a CGA card with a monochrome monitor. Monochrome monitor options are: green, amber, white or paperwhite. The color can be changed at runtime with F11. Include paperwhite color by Basic <basic@vogons.org> https://www.vogons.org/viewtopic.php?p=587382#p587382 Vogons thread: https://www.vogons.org/viewtopic.php?f=41&t=29101 Signed-off-by: Michael Zijlstra <mzijlstra@gmail.com> Signed-off-by: Patryk Obara <dreamer.tan@gmail.com> Imported-from: https://www.vogons.org/viewtopic.php?p=238045#p238045
This commit is contained in:
parent
46e5fdee69
commit
ffe3c5ab7f
6 changed files with 93 additions and 10 deletions
|
@ -130,6 +130,8 @@ Bit32u ticksScheduled;
|
|||
bool ticksLocked;
|
||||
void increaseticks();
|
||||
|
||||
bool mono_cga=false;
|
||||
|
||||
static Bitu Normal_Loop(void) {
|
||||
Bits ret;
|
||||
while (1) {
|
||||
|
@ -364,7 +366,8 @@ static void DOSBOX_RealInit(Section * sec) {
|
|||
machine = MCH_VGA;
|
||||
int10.vesa_nolfb = false;
|
||||
int10.vesa_oldvbe = false;
|
||||
if (mtype == "cga") { machine = MCH_CGA; }
|
||||
if (mtype == "cga") { machine = MCH_CGA; mono_cga = false; }
|
||||
else if (mtype == "cga_mono") { machine = MCH_CGA; mono_cga = true; }
|
||||
else if (mtype == "tandy") { machine = MCH_TANDY; }
|
||||
else if (mtype == "pcjr") { machine = MCH_PCJR; }
|
||||
else if (mtype == "hercules") { machine = MCH_HERC; }
|
||||
|
@ -403,7 +406,7 @@ void DOSBOX_Init(void) {
|
|||
|
||||
/* Setup all the different modules making up DOSBox */
|
||||
const char* machines[] = {
|
||||
"hercules", "cga", "tandy", "pcjr", "ega",
|
||||
"hercules", "cga", "cga_mono", "tandy", "pcjr", "ega",
|
||||
"vgaonly", "svga_s3", "svga_et3000", "svga_et4000",
|
||||
"svga_paradise", "vesa_nolfb", "vesa_oldvbe", 0 };
|
||||
secprop=control->AddSection_prop("dosbox",&DOSBOX_RealInit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue