Previous 15994 Revisions Next

r8737 Sunday 8th August, 2010 at 08:07:25 UTC by Angelo Salese
[PC-6001Mk2]: Fixed border color in MC6847 compatibility modes
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r8736r8737
269269   }
270270}
271271
272static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr)
272static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr,int has_mc6847)
273273{
274274   int x,y,color;
275275
r8736r8737
277277   {
278278      for(x=0;x<320;x++)
279279      {
280         if((attr & 0x90) == 0x80) //2bpp
280         if(!has_mc6847) //mk2 border color is always black
281            color = 0;
282         else if((attr & 0x90) == 0x80) //2bpp
281283            color = ((attr & 2)<<1) + 8;
282284         else if((attr & 0x90) == 0x90) //1bpp
283            color = (attr & 2) ? 7 : 2; //FIXME: colors aren't right there either
285            color = (attr & 2) ? 7 : 2;
284286         else
285287            color = 0; //FIXME: other modes not yet checked
286288
r8736r8737
296298
297299   attr = pc6001_video_ram[0];
298300
299   draw_border(machine,bitmap,cliprect,attr);
301   draw_border(machine,bitmap,cliprect,attr,has_mc6847);
300302
301303   if(attr & 0x80) // gfx mode
302304   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team