From 87f598816bc394a925ef596a3cd184ade88975fe Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 3 Sep 2021 00:29:25 +0200 Subject: [PATCH] Fixed the Amstrad colors, closes #1517. --- src/machine/m_amstrad.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/machine/m_amstrad.c b/src/machine/m_amstrad.c index be44fa734..24fc1be51 100644 --- a/src/machine/m_amstrad.c +++ b/src/machine/m_amstrad.c @@ -1643,8 +1643,6 @@ vid_init_200(amstrad_t *ams) memset(vid, 0x00, sizeof(amsvid_t)); vid->emulation = device_get_config_int("video_emulation"); - cga_palette = (device_get_config_int("display_type") << 1); - ams_inform(vid); /* Default to CGA */ vid->dipswitches = 0x10; @@ -1677,6 +1675,9 @@ vid_init_200(amstrad_t *ams) cga_init(cga); mda_init(mda); + cga_palette = (device_get_config_int("display_type") << 1); + ams_inform(vid); + /* Attribute 8 is white on black (on a real MDA it's black on black) */ mda_setcol(0x08, 0, 1, 15); mda_setcol(0x88, 0, 1, 15);