Added ability to choose monochrome displays (green, amber, and gray) for CGA MDA, and Hercules graphics cards, based on VileRancour's DOSBox patch.

This commit is contained in:
OBattler
2017-02-19 16:36:43 +01:00
parent b440d749de
commit 92be9c98df
10 changed files with 208 additions and 78 deletions

View File

@@ -16,6 +16,9 @@
#include "rom.h"
#include "thread.h"
#include "timer.h"
#ifndef __unix
#include "win-cgapal.h"
#endif
#include "vid_ati18800.h"
#include "vid_ati28800.h"
@@ -49,6 +52,8 @@
#include "vid_vga.h"
#include "vid_wy700.h"
int cga_palette = 0;
typedef struct
{
char name[64];
@@ -255,6 +260,11 @@ void video_init()
{
pclog("Video_init %i %i\n",romset,gfxcard);
#ifndef __unix
cga_palette = 0;
cgapal_rebuild();
#endif
switch (romset)
{
case ROM_IBMPCJR: