--- np2/io/egc.c 2005/02/08 09:19:00 1.8 +++ np2/io/egc.c 2007/11/03 00:00:20 1.10 @@ -21,7 +21,7 @@ static const UINT16 maskword[16][4] = { static void IOOUTCALL egc_o4a0(UINT port, REG8 value) { - if (!(vramop.operate & VOP_EGCBIT)) { + if (!(vramop.operate & (1 << VOPBIT_EGC))) { return; } @@ -115,7 +115,7 @@ static void IOOUTCALL egc_o4a0(UINT port } } -void egc_reset(void) { +void egc_reset(const NP2CFG *pConfig) { ZeroMemory(&egc, sizeof(egc)); egc.access = 0xfff0; @@ -124,6 +124,8 @@ void egc_reset(void) { egc.leng = 0x000f; egcshift(); egc.srcmask.w = 0xffff; + + (void)pConfig; } void egc_bind(void) { @@ -137,7 +139,7 @@ void egc_bind(void) { void IOOUTCALL egc_w16(UINT port, REG16 value) { - if (!(vramop.operate & VOP_EGCBIT)) { + if (!(vramop.operate & (1 << VOPBIT_EGC))) { return; }