~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/video/alpha68k.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
                        }
117
117
 
118
118
                        if (color)
119
 
                                drawgfx(bitmap,machine->gfx[1],
 
119
                                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
120
120
                                        tile,
121
121
                                        color,
122
122
                                        fx,fy,
123
 
                                        mx,my,
124
 
                                        cliprect,TRANSPARENCY_PEN,0);
 
123
                                        mx,my,0);
125
124
 
126
125
                        if (flipscreen)
127
126
                                my=(my-16)&0x1ff;
138
137
        static int last_bank=0;
139
138
 
140
139
        if (last_bank!=bank_base)
141
 
                tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
 
140
                tilemap_mark_all_tiles_dirty_all(screen->machine);
142
141
        last_bank=bank_base;
143
 
        tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
142
        tilemap_set_flip_all(screen->machine,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
144
143
 
145
144
        bitmap_fill(bitmap,cliprect,2047);
146
145
//AT
257
256
                        }
258
257
 
259
258
                        if (color)
260
 
                                drawgfx(bitmap,machine->gfx[1],
 
259
                                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
261
260
                                        tile,
262
261
                                        color,
263
262
                                        fx,fy,
264
 
                                        mx,my,
265
 
                                        cliprect,TRANSPARENCY_PEN,0);
 
263
                                        mx,my,0);
266
264
 
267
265
                        if (flipscreen)
268
266
                                my=(my-16)&0x1ff;
277
275
        static int last_bank=0;
278
276
 
279
277
        if (last_bank!=bank_base)
280
 
                tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
 
278
                tilemap_mark_all_tiles_dirty_all(screen->machine);
281
279
        last_bank=bank_base;
282
 
        tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
280
        tilemap_set_flip_all(screen->machine,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
283
281
 
284
282
        bitmap_fill(bitmap,cliprect,4095);
285
283
 
313
311
        static int last_bank=0;
314
312
 
315
313
        if (last_bank!=bank_base)
316
 
                tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
 
314
                tilemap_mark_all_tiles_dirty_all(screen->machine);
317
315
        last_bank=bank_base;
318
 
        tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
316
        tilemap_set_flip_all(screen->machine,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
319
317
 
320
318
        bitmap_fill(bitmap,cliprect,4095);
321
319
 
350
348
                        fy = data & 0x4000;
351
349
                        color = color_prom[tile<<1|data>>15];
352
350
 
353
 
                        drawgfx(bitmap, gfx, tile, color, 0, fy, mx, my,
354
 
                                        cliprect, TRANSPARENCY_PEN, 0);
 
351
                        drawgfx_transpen(bitmap, cliprect, gfx, tile, color, 0, fy, mx, my, 0);
355
352
 
356
353
                        my = (my + 8) & 0xff;
357
354
                }
473
470
 
474
471
                                        tile = (data>>3 & 0x400) | (data & 0x3ff);
475
472
                                        alpha68k_video_banking(&bank, data);
476
 
                                        drawgfx(bitmap, machine->gfx[bank], tile, color, fx, fy, mx, my,
477
 
                                                        cliprect, TRANSPARENCY_PEN, 0);
 
473
                                        drawgfx_transpen(bitmap, cliprect, machine->gfx[bank], tile, color, fx, fy, mx, my, 0);
478
474
                                }
479
475
                        }
480
476
//ZT
532
528
                                color = (data>>7 & 0x18) | (data>>13 & 7);
533
529
                                tile = data & 0x3ff;
534
530
                                bank = data>>10 & 3;
535
 
                                drawgfx(bitmap, machine->gfx[bank], tile, color, fx, fy, mx, my,
536
 
                                                cliprect, TRANSPARENCY_PEN, 0);
 
531
                                drawgfx_transpen(bitmap, cliprect, machine->gfx[bank], tile, color, fx, fy, mx, my, 0);
537
532
                        }
538
533
//ZT
539
534
                        if(flipscreen)