133
drawgfx(bitmap, gfx[1], code, color, 0, 0, x, y, cliprect, TRANSPARENCY_PEN, 0);
133
drawgfx_transpen(bitmap, cliprect, gfx, code, color, 0, 0, x, y, 0);
137
137
if (cheekyms_spriteram[offs + 0] & 0x02)
139
drawgfx(bitmap, gfx[1], code | 0x20, color, 0, 0, x, y, cliprect, TRANSPARENCY_PEN, 0);
140
drawgfx(bitmap, gfx[1], code | 0x21, color, 0, 0, 0x10 + x, y, cliprect, TRANSPARENCY_PEN, 0);
139
drawgfx_transpen(bitmap, cliprect, gfx, code | 0x20, color, 0, 0, x, y, 0);
140
drawgfx_transpen(bitmap, cliprect, gfx, code | 0x21, color, 0, 0, 0x10 + x, y, 0);
144
drawgfx(bitmap, gfx[1], code | 0x20, color, 0, 0, x, y, cliprect, TRANSPARENCY_PEN, 0);
145
drawgfx(bitmap, gfx[1], code | 0x21, color, 0, 0, x, 0x10 + y, cliprect, TRANSPARENCY_PEN, 0);
144
drawgfx_transpen(bitmap, cliprect, gfx, code | 0x20, color, 0, 0, x, y, 0);
145
drawgfx_transpen(bitmap, cliprect, gfx, code | 0x21, color, 0, 0, x, 0x10 + y, 0);
155
155
int scrolly = ((*cheekyms_port_80 >> 3) & 0x07);
156
156
int flip = *cheekyms_port_80 & 0x80;
158
tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
159
tilemap_set_flip(ALL_TILEMAPS, flip ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0);
158
tilemap_mark_all_tiles_dirty_all(screen->machine);
159
tilemap_set_flip_all(screen->machine, flip ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0);
161
161
bitmap_fill(bitmap, cliprect, 0);
162
162
bitmap_fill(bitmap_buffer, cliprect, 0);
164
164
/* sprites go under the playfield */
165
draw_sprites(screen->machine->gfx, bitmap, cliprect, flip);
165
draw_sprites(bitmap, cliprect, screen->machine->gfx[1], flip);
167
167
/* draw the tilemap to a temp bitmap */
168
168
tilemap_draw(bitmap_buffer, cliprect, cheekyms_tilemap, 0, 0);