Previous 15994 Revisions Next

r8730 Saturday 7th August, 2010 at 12:04:21 UTC by Angelo Salese
[PC6001Mk2]: More gfx improvements
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r8729r8730
146146   pc6001_video_ram = auto_alloc_array(machine, UINT8, 0x2000); //0x400? We'll see...
147147}
148148
149/* FIXME: colors of this aren't 100% accurate */
150149static void draw_bitmap_1bpp(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr)
151150{
152151   int x,y,xi;
r8729r8730
340339
341340static VIDEO_UPDATE( pc6001m2 )
342341{
343   int tile,attr,x,y;
342   int x,y,tile,attr;
344343
345   attr = pc6001_video_ram[0];
346
347344   if(exgfx_mode)
348345   {
349346      int xi,yi,pen,fgcol,bgcol,color;
r8729r8730
353350      {
354351         for(x=0;x<40;x++)
355352         {
356            tile = pc6001_video_ram[(x+(y*40))+0x400];
353            /*
354            exgfx attr format:
355            x--- ---- rom bank select
356            -xxx ---- bg color
357            ---- xxxx fg color
358            Note that the exgfx banks a different gfx ROM
359            */
360            tile = pc6001_video_ram[(x+(y*40))+0x400] + 0x200;
357361            attr = pc6001_video_ram[(x+(y*40)) & 0x3ff];
362            tile+= ((attr & 0x80) << 1);
358363
359364            for(yi=0;yi<12;yi++)
360365            {
r8729r8730
375380      }
376381   }
377382   else
383   {
384      attr = pc6001_video_ram[0];
378385      pc6001_screen_draw(screen->machine,bitmap,cliprect,0);
386   }
379387
380388   return 0;
381389}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team