Previous 15994 Revisions Next

r8955 Monday 30th August, 2010 at 10:49:41 UTC by Angelo Salese
[MZ-2500]: Fixed missing title screen in Mappy
[src/mess/drivers]mz2500.c

src/mess/drivers/mz2500.c
r8954r8955
137137                  pen = ((gfx_data[tile*8+yi+((gfx_sel & 0x30)<<7)]>>(7-xi)) & 1) ? color : 0;
138138               }
139139
140               *BITMAP_ADDR16(bitmap, (y*8+yi), x*8+xi) = machine->pens[pen];
140               if(pen)
141                  *BITMAP_ADDR16(bitmap, (y*8+yi), x*8+xi) = machine->pens[pen];
141142            }
142143         }
143144            //drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[gfx_num],tile,color,0,0,x*8,(y)*8);
r8954r8955
231232         default: popmessage("%02x %02x %02x",tv_mode & 3,text_reg[1],text_reg[2]); break;
232233      }
233234   }
234
235   #if 0
236   if(text_font_reg)
237   {
238
239   }
240   else
241   {
242      for (y=0;y<25;y+=2)
243      {
244         for (x=0;x<40*w;x++)
245         {
246            int tile = vram[count+0x0000] & 0xfe;
247            int attr = vram[count+0x0800];
248            int tile_bank = vram[count+0x1000] & 0x3f;
249            int gfx_sel = (attr & 0x38) | (vram[count+0x1000] & 0xc0);
250            //int gfx_num;
251            int color = attr & 7;
252
253            if(gfx_sel == 0x80 || gfx_sel == 0xc0)
254               gfx_data = memory_region(machine,"kanji"); //TODO
255            else
256               gfx_data = memory_region(machine,"pcg");
257
258            tile|= tile_bank << 8;
259
260            for(yi=0;yi<16;yi++)
261            {
262               for(xi=0;xi<8;xi++)
263               {
264                  UINT8 pen;
265
266                  pen = ((gfx_data[tile*8+yi]>>(7-xi)) & 1) ? color : 0;
267
268                  *BITMAP_ADDR16(bitmap, (y*8+yi), x*8+xi) = machine->pens[pen];
269               }
270            }
271
272//            drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[gfx_num],tile,color,0,0,x*8,(y)*8);
273//            drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[gfx_num],tile+1,color,0,0,x*8,(y+1)*8);
274
275            count++;
276         }
277      }
278   }
279   #endif
280235}
281236
282237static void draw_cg16_screen(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int plane,int x_size)
r8954r8955
286241   UINT8 pen,pen_bit[4];
287242   int x,y,xi,pen_i;
288243
289   count = 0x40000 + plane * 0x10000;
244   count = 0x40000 + (plane * 0x2000);
290245
291246   for(y=0;y<200;y++)
292247   {
r8954r8955
377332   {
378333      draw_tv_screen(screen->machine,bitmap,cliprect);
379334      draw_cg_screen(screen->machine,bitmap,cliprect);
380//      draw_tv_screen(screen->machine,bitmap,cliprect);
335      //draw_tv_screen(screen->machine,bitmap,cliprect);
381336   }
382337   else //4096 mode colors
383338   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team