Previous 199869 Revisions Next

r27515 Thursday 6th February, 2014 at 18:43:22 UTC by Alex Jackson
Fix rallybik title screen color [Alex Jackson]
[src/mame/video]toaplan1.c

trunk/src/mame/video/toaplan1.c
r27514r27515
148148         tile_number,
149149         color,
150150         0);
151   if (m_pf1_tilevram16[2*tile_index+1] & 0x8000) tileinfo.pen_data = m_empty_tile;
152   tileinfo.category = (attrib & 0xf000) >> 12;
151   // "disabled" tiles are behind everything else
152   if (m_pf1_tilevram16[2*tile_index+1] & 0x8000) tileinfo.category = 16;
153      else tileinfo.category = (attrib & 0xf000) >> 12;
153154}
154155
155156TILE_GET_INFO_MEMBER(toaplan1_state::get_pf2_tile_info)
r27514r27515
164165         tile_number,
165166         color,
166167         0);
167   if (m_pf2_tilevram16[2*tile_index+1] & 0x8000) tileinfo.pen_data = m_empty_tile;
168   tileinfo.category = (attrib & 0xf000) >> 12;
168   // "disabled" tiles are behind everything else
169   if (m_pf2_tilevram16[2*tile_index+1] & 0x8000) tileinfo.category = 16;
170      else tileinfo.category = (attrib & 0xf000) >> 12;
169171}
170172
171173TILE_GET_INFO_MEMBER(toaplan1_state::get_pf3_tile_info)
r27514r27515
180182         tile_number,
181183         color,
182184         0);
183   if (m_pf3_tilevram16[2*tile_index+1] & 0x8000) tileinfo.pen_data = m_empty_tile;
184   tileinfo.category = (attrib & 0xf000) >> 12;
185   // "disabled" tiles are behind everything else
186   if (m_pf3_tilevram16[2*tile_index+1] & 0x8000) tileinfo.category = 16;
187      else tileinfo.category = (attrib & 0xf000) >> 12;
185188}
186189
187190TILE_GET_INFO_MEMBER(toaplan1_state::get_pf4_tile_info)
r27514r27515
196199         tile_number,
197200         color,
198201         0);
199   if (m_pf4_tilevram16[2*tile_index+1] & 0x8000) tileinfo.pen_data = m_empty_tile;
200   tileinfo.category = (attrib & 0xf000) >> 12;
202   // "disabled" tiles are behind everything else
203   if (m_pf4_tilevram16[2*tile_index+1] & 0x8000) tileinfo.category = 16;
204      else tileinfo.category = (attrib & 0xf000) >> 12;
201205}
202206
203207/***************************************************************************
r27514r27515
217221   m_pf2_tilemap->set_transparent_pen(0);
218222   m_pf3_tilemap->set_transparent_pen(0);
219223   m_pf4_tilemap->set_transparent_pen(0);
220   
221   m_pf1_tilemap->set_scrolldy(0, 0x100); m_pf1_tilemap->set_scrolldx(0, -0x28);
222   m_pf2_tilemap->set_scrolldy(0, 0x100); m_pf2_tilemap->set_scrolldx(0, -0x28);
223   m_pf3_tilemap->set_scrolldy(0, 0x100); m_pf3_tilemap->set_scrolldx(0, -0x28);
224   m_pf4_tilemap->set_scrolldy(0, 0x100); m_pf4_tilemap->set_scrolldx(0, -0x28);
225224
226225   memset(m_empty_tile, 0x00, sizeof(m_empty_tile));
227226}
r27514r27515
10761075
10771076   toaplan1_log_vram();
10781077
1079   bitmap.fill(0x120, cliprect);
10801078   m_spritegen->draw_sprites_to_tempbitmap(cliprect, m_buffered_spriteram,  m_spriteram.bytes());
10811079
1080   // first draw everything, including "disabled" tiles and priority 0
1081   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0);
10821082
1083   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | 0, 0);
1084   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | 1, 0);
1085
1083   // then draw the higher priority layers in order
10861084   for (priority = 1; priority < 16; priority++)
10871085   {
10881086      m_pf4_tilemap->draw(screen, bitmap, cliprect, priority, 0);
r27514r27515
11071105   toaplan1_log_vram();
11081106
11091107   screen.priority().fill(0, cliprect);
1110   bitmap.fill(0x120, cliprect);
11111108
1112// it's really correct?
1113   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | 0, 0);
1114   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | 1, 0);
1109   // first draw everything, including "disabled" tiles and priority 0
1110   m_pf1_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0);
11151111
1112   // then draw the higher priority layers in order
11161113   for (priority = 1; priority < 16; priority++)
11171114   {
11181115      m_pf4_tilemap->draw(screen, bitmap, cliprect, priority, priority, 0);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team