From 3275b176574da87a11780d3f899d8feaf1b6d5b1 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 25 Sep 2019 18:32:36 +0200 Subject: [PATCH] The PCjr now correctly initializes the font and palette on video init, fixes emulator start-up with internal video selected. --- src/machine/m_pcjr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/machine/m_pcjr.c b/src/machine/m_pcjr.c index 8e59c8098..0d3ad7c70 100644 --- a/src/machine/m_pcjr.c +++ b/src/machine/m_pcjr.c @@ -763,6 +763,7 @@ machine_pcjr_init(const machine_t *model) cpu_set(); /* Initialize the video controller. */ + loadfont(L"roms/video/mda/mda.rom", 0); mem_mapping_add(&pcjr->mapping, 0xb8000, 0x08000, vid_read, NULL, NULL, vid_write, NULL, NULL, NULL, 0, pcjr); @@ -771,6 +772,8 @@ machine_pcjr_init(const machine_t *model) timer_add(&pcjr->timer, vid_poll, pcjr, 1); video_inform(VIDEO_FLAG_TYPE_CGA, &timing_dram); device_add_ex(&pcjr_device, pcjr); + cga_palette = 0; + cgapal_rebuild(); /* Initialize the keyboard. */ keyboard_scan = 1;