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.

This commit is contained in:
OBattler
2023-08-07 03:35:23 +02:00
parent 53daf8be9d
commit 88c12bf4b9

View File

@@ -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);