--- np2/io/mouseif.c 2005/05/20 13:59:47 1.15 +++ np2/io/mouseif.c 2007/11/11 13:54:14 1.17 @@ -238,8 +238,8 @@ static REG8 IOINPCALL mouseif_i7fdd(UINT if (mode & uPD8255_PORTCL) { ret &= 0xf0; ret |= 0x08; - ret |= (np2cfg.dipsw[2] >> 5) & 0x04; - ret |= ((~np2cfg.dipsw[0]) >> 4) & 0x03; + ret |= (pccore.dipsw[2] >> 5) & 0x04; + ret |= ((~pccore.dipsw[0]) >> 4) & 0x03; } (void)port; return(ret); @@ -254,7 +254,7 @@ static void IOOUTCALL mouseif_obfdb(UINT // ---- I/F -void mouseif_reset(void) { +void mouseif_reset(const NP2CFG *pConfig) { ZeroMemory(&mouseif, sizeof(mouseif)); mouseif.upd8255.porta = 0x00; @@ -265,6 +265,8 @@ void mouseif_reset(void) { mouseif.moveclock = pccore.realclock / 56400; mouseif.latch_x = -1; mouseif.latch_y = -1; + + (void)pConfig; } void mouseif_bind(void) {