From 88c12bf4b978a355c6efe2467f9cd2e05c8253c3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 7 Aug 2023 03:35:23 +0200 Subject: [PATCH] Made the secondary graphics card initialize before the primary one so that the primary one's memory mappings have precedence by virtue of coming last - fixes main output going to the wrong window on some 486 machines. --- src/video/vid_table.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/video/vid_table.c b/src/video/vid_table.c index eb999eb3f..c417229dc 100644 --- a/src/video/vid_table.c +++ b/src/video/vid_table.c @@ -343,16 +343,6 @@ video_reset(int card) monitor_index_global = 0; loadfont("roms/video/mda/mda.rom", 0); - /* Do not initialize internal cards here. */ - if (!(card == VID_NONE) && !(card == VID_INTERNAL) && !machine_has_flags(machine, MACHINE_VIDEO_ONLY)) { - vid_table_log("VIDEO: initializing '%s'\n", video_cards[card].device->name); - - video_prepare(); - - /* Initialize the video card. */ - device_add(video_cards[card].device); - } - if (!(card == VID_NONE) && !machine_has_flags(machine, MACHINE_VIDEO_ONLY) && gfxcard[1] != 0 @@ -363,6 +353,16 @@ video_reset(int card) monitor_index_global = 0; } + /* Do not initialize internal cards here. */ + if (!(card == VID_NONE) && !(card == VID_INTERNAL) && !machine_has_flags(machine, MACHINE_VIDEO_ONLY)) { + vid_table_log("VIDEO: initializing '%s'\n", video_cards[card].device->name); + + video_prepare(); + + /* Initialize the video card. */ + device_add(video_cards[card].device); + } + /* Enable the Voodoo if configured. */ if (voodoo_enabled) device_add(&voodoo_device);