Previous 15994 Revisions Next

r4564 Sunday 26th April, 2009 at 08:27:41 UTC by Wilbert Pol
[NGPC] Only allow the lower 4 bits of high palette to be written. Fixes bug #1816.
[src/mess/video]k1ge.c

src/mess/video/k1ge.c
r4563r4564
113113      data &= 0x80;
114114      break;
115115   }
116
117   /* Only the lower 4 bits of the palette entry high bytes can be written */
118   if ( offset >= 0x0200 && offset < 0x0400 && ( offset & 1 ) )
119   {
120      data &= 0x0f;
121   }
122
116123   k1ge->vram[offset & 0x7ff] = data;
117124}
118125

Previous 15994 Revisions Next


© 1998-2018 The MESS Team