Previous 199869 Revisions Next

r19894 Friday 28th December, 2012 at 12:17:38 UTC by Robbbert
MT4938 : mpatrol, cocktail mode fix [Robbbert]
[src/mame/video]m52.c

trunk/src/mame/video/m52.c
r19893r19894
152152   m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(m52_state::get_tile_info),this), TILEMAP_SCAN_ROWS,  8, 8, 32, 32);
153153
154154   m_bg_tilemap->set_transparent_pen(0);
155   m_bg_tilemap->set_scrolldx(128 - 1, -1);
155   m_bg_tilemap->set_scrolldx(127, 127);
156156   m_bg_tilemap->set_scrolldy(16, 16);
157157   m_bg_tilemap->set_scroll_rows(4); /* only lines 192-256 scroll */
158158
r19893r19894
293293 *
294294 *************************************/
295295
296static void draw_background(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image)
296void draw_background(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image)
297297{
298298   rectangle rect;
299299   const rectangle &visarea = machine.primary_screen->visible_area();
300300
301301   m52_state *state = machine.driver_data<m52_state>();
302
302303   if (state->flip_screen())
303304   {
304      xpos = 255 - xpos;
305      xpos = 127 - xpos;
305306      ypos = 255 - ypos - BGHEIGHT;
306307   }
307308
r19893r19894
400401         clip.max_y = 255 - temp;
401402         flipx = !flipx;
402403         flipy = !flipy;
403         sx = 240 - sx;
404         sx = 112 - sx;
404405         sy = 257 + 11 - sy;
405406      }
406407

Previous 199869 Revisions Next


© 1997-2024 The MAME Team