trunk/src/mame/video/m52.c
| r19893 | r19894 | |
| 152 | 152 | m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(m52_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); |
| 153 | 153 | |
| 154 | 154 | m_bg_tilemap->set_transparent_pen(0); |
| 155 | | m_bg_tilemap->set_scrolldx(128 - 1, -1); |
| 155 | m_bg_tilemap->set_scrolldx(127, 127); |
| 156 | 156 | m_bg_tilemap->set_scrolldy(16, 16); |
| 157 | 157 | m_bg_tilemap->set_scroll_rows(4); /* only lines 192-256 scroll */ |
| 158 | 158 | |
| r19893 | r19894 | |
| 293 | 293 | * |
| 294 | 294 | *************************************/ |
| 295 | 295 | |
| 296 | | static void draw_background(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image) |
| 296 | void draw_background(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image) |
| 297 | 297 | { |
| 298 | 298 | rectangle rect; |
| 299 | 299 | const rectangle &visarea = machine.primary_screen->visible_area(); |
| 300 | 300 | |
| 301 | 301 | m52_state *state = machine.driver_data<m52_state>(); |
| 302 | |
| 302 | 303 | if (state->flip_screen()) |
| 303 | 304 | { |
| 304 | | xpos = 255 - xpos; |
| 305 | xpos = 127 - xpos; |
| 305 | 306 | ypos = 255 - ypos - BGHEIGHT; |
| 306 | 307 | } |
| 307 | 308 | |
| r19893 | r19894 | |
| 400 | 401 | clip.max_y = 255 - temp; |
| 401 | 402 | flipx = !flipx; |
| 402 | 403 | flipy = !flipy; |
| 403 | | sx = 240 - sx; |
| 404 | sx = 112 - sx; |
| 404 | 405 | sy = 257 + 11 - sy; |
| 405 | 406 | } |
| 406 | 407 | |