Previous 15994 Revisions Next

r8700 Tuesday 3rd August, 2010 at 21:25:53 UTC by Angelo Salese
[PC-6001]: added preliminary border color
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r8699r8700
248248   }
249249}
250250
251static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr)
252{
253   int x,y,color;
254
255   for(y=0;y<240;y++)
256   {
257      for(x=0;x<320;x++)
258      {
259         if(attr & 0x80 && (!(attr & 0x10)))
260            color = ((attr & 2)<<1) + 8;
261         else
262            color = 0; //FIXME: other modes not yet checked
263
264         *BITMAP_ADDR16(bitmap, y, x) = machine->pens[color];
265      }
266   }
267}
268
251269static void pc6001_screen_draw(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect, int has_mc6847)
252270{
253271   int x,y;
r8699r8700
255273
256274   attr = pc6001_video_ram[0];
257275
276   draw_border(machine,bitmap,cliprect,attr);
277
258278   if(attr & 0x80) // gfx mode
259279   {
260280      if(attr & 0x10) // 256x192x1 mode (FIXME: might be a different trigger)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team