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

« back to all changes in this revision

Viewing changes to src/mame/video/xxmissio.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:
86
86
}
87
87
 
88
88
 
89
 
static void draw_sprites(bitmap_t *bitmap, gfx_element **gfx, const rectangle *cliprect)
 
89
static void draw_sprites(bitmap_t *bitmap, const rectangle *cliprect, const gfx_element *gfx)
90
90
{
91
91
        int offs;
92
92
        int chr,col;
119
119
 
120
120
                px &= 0x1ff;
121
121
 
122
 
                drawgfx(bitmap,gfx[1],
 
122
                drawgfx_transpen(bitmap,cliprect,gfx,
123
123
                        chr,
124
124
                        col,
125
125
                        fx,fy,
126
 
                        px,py,
127
 
                        cliprect,TRANSPARENCY_PEN,0);
 
126
                        px,py,0);
128
127
 
129
128
                if (px>0x1e0)
130
 
                        drawgfx(bitmap,gfx[1],
 
129
                        drawgfx_transpen(bitmap,cliprect,gfx,
131
130
                                chr,
132
131
                                col,
133
132
                                fx,fy,
134
 
                                px-0x200,py,
135
 
                                cliprect,TRANSPARENCY_PEN,0);
 
133
                                px-0x200,py,0);
136
134
 
137
135
        }
138
136
}
140
138
 
141
139
VIDEO_UPDATE( xxmissio )
142
140
{
143
 
        tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
144
 
        tilemap_set_flip(ALL_TILEMAPS, flipscreen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0);
 
141
        tilemap_mark_all_tiles_dirty_all(screen->machine);
 
142
        tilemap_set_flip_all(screen->machine, flipscreen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0);
145
143
 
146
144
        tilemap_set_scrollx(bg_tilemap, 0, xscroll * 2);
147
145
        tilemap_set_scrolly(bg_tilemap, 0, yscroll);
148
146
 
149
147
        tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0);
150
 
        draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
148
        draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
151
149
        tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0);
152
150
 
153
151
        return 0;