From 125315ee613a1e2009701cb43c9c464cb1cee38b Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 30 Apr 2023 18:24:14 +0200 Subject: [PATCH] Fixed the KBC PCI flag, fixes the logo on the TriGem HAWK. --- src/device/kbc_at.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device/kbc_at.c b/src/device/kbc_at.c index 64403a5ed..aed771b9e 100644 --- a/src/device/kbc_at.c +++ b/src/device/kbc_at.c @@ -1788,7 +1788,7 @@ kbc_at_reset(void *priv) dev->sc_or = 0; dev->ami_flags = ((dev->flags & KBC_TYPE_MASK) >= KBC_TYPE_PS2_1) ? 0x01 : 0x00; - dev->misc_flags = 0x00; + dev->misc_flags &= FLAG_PCI; if ((dev->flags & KBC_TYPE_MASK) >= KBC_TYPE_PS2_1) { dev->misc_flags |= FLAG_PS2; @@ -1842,12 +1842,12 @@ kbc_at_init(const device_t *info) dev->flags = info->local; - if (info->flags & DEVICE_PCI) - dev->misc_flags |= FLAG_PCI; - video_reset(gfxcard[0]); kbc_at_reset(dev); + if (info->flags & DEVICE_PCI) + dev->misc_flags |= FLAG_PCI; + io_sethandler(0x0060, 1, kbc_at_read, NULL, NULL, kbc_at_write, NULL, NULL, dev); io_sethandler(0x0064, 1, kbc_at_read, NULL, NULL, kbc_at_write, NULL, NULL, dev);