summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/superqix.c
diff options
context:
space:
mode:
author Zsolt Vasvari <zsoltvas@mamedev.org>2008-01-28 13:02:04 +0000
committer Zsolt Vasvari <zsoltvas@mamedev.org>2008-01-28 13:02:04 +0000
commit354acd5f1b36b7132b7adf82f85044519774a036 (patch)
tree8bcd3e8f9ef9dc78c3d395c6b2b0d630bc649b0c /src/mame/video/superqix.c
parente424adb362864854a86d966d5765eef59b762a44 (diff)
- Removed TRANSPARENCY_NONE_RAW, TRANSPARENCY_PENS_RAW and TRANSPARENCY_PEN_TABLE_RAW as they were no
longer used. Source needs to be recompiled because of the changed enum. - Changed copybitmap and copyscrollbitmap: There are now 2 versions of each, one without and with transparency: void copybitmap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, int sx,int sy,const rectangle *clip); void copybitmap_trans(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, int sx,int sy,const rectangle *clip, pen_t transparent_pen); void copyscrollbitmap(mame_bitmap *dest,mame_bitmap *src, nt rows,const int *rowscroll,int cols,const int *colscroll, const rectangle *clip); void copyscrollbitmap_trans(mame_bitmap *dest,mame_bitmap *src, int rows,const int *rowscroll,int cols,const int *colscroll, const rectangle *clip, pen_t transparent_pen); The version without _trans is the equivalent of the old TRANSPARENCY_NONE, The *_trans version is the equivalent of the old TRANSPARENCY_PEN. The old TRANSPARENCY_COLOR mode is done via calling *_trans version and passing in the pen that has been looked up via machine->pens[]. So for example, copybitmap(..., TRANSPARENCY_COLOR, 0) becomes copybitmap_trans(..., machine->pens[0]) - Changed all drivers to the new calls. Suprising how few drivers still use these functions. Most have still not been converted to tilemaps, or they are still writing to a tmpbitmap which gets copied over to the real bitmap in VIDEO_UPDATE. - Changed machine->screen[0].visarea to 'cliprect' where appropriate.
Diffstat (limited to 'src/mame/video/superqix.c')
-rw-r--r--src/mame/video/superqix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c
index e669735a3db..5f797cf88f9 100644
--- a/src/mame/video/superqix.c
+++ b/src/mame/video/superqix.c
@@ -254,7 +254,7 @@ VIDEO_UPDATE( pbillian )
VIDEO_UPDATE( superqix )
{
tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_LAYER1, 0);
- copybitmap(bitmap,fg_bitmap[show_bitmap],flip_screen,flip_screen,0,0,cliprect,TRANSPARENCY_PEN,0);
+ copybitmap_trans(bitmap,fg_bitmap[show_bitmap],flip_screen,flip_screen,0,0,cliprect,0);
superqix_draw_sprites(machine, bitmap,cliprect);
tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_LAYER0, 0);
return 0;