~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/video/namcos1.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        namcos1_state *state = machine.driver_data<namcos1_state>();
122
122
        int i;
123
123
 
124
 
        state->m_tilemap_maskdata = (UINT8 *)machine.region("gfx1")->base();
 
124
        state->m_tilemap_maskdata = (UINT8 *)state->memregion("gfx1")->base();
125
125
 
126
126
        /* allocate videoram */
127
127
        state->m_videoram = auto_alloc_array(machine, UINT8, 0x8000);
334
334
                sx += sprite_xoffs;
335
335
                sy -= sprite_yoffs;
336
336
 
337
 
                if (flip_screen_get(machine))
 
337
                if (state->flip_screen())
338
338
                {
339
339
                        sx = -sx - sizex;
340
340
                        sy = -sy - sizey;
377
377
        rectangle new_clip = cliprect;
378
378
 
379
379
        /* flip screen is embedded in the sprite control registers */
380
 
        /* can't use flip_screen_set(screen.machine(), ) because the visible area is asymmetrical */
381
 
        flip_screen_set_no_update(screen.machine(), state->m_spriteram[0x0ff6] & 1);
382
 
        screen.machine().tilemap().set_flip_all(flip_screen_get(screen.machine()) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
380
        /* can't use state->flip_screen_set() because the visible area is asymmetrical */
 
381
        state->flip_screen_set_no_update(state->m_spriteram[0x0ff6] & 1);
 
382
        screen.machine().tilemap().set_flip_all(state->flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
383
383
 
384
384
 
385
385
        /* background color */
411
411
                scrollx = ( state->m_playfield_control[j+1] + (state->m_playfield_control[j+0]<<8) ) - disp_x[i];
412
412
                scrolly = ( state->m_playfield_control[j+3] + (state->m_playfield_control[j+2]<<8) ) + 8;
413
413
 
414
 
                if (flip_screen_get(screen.machine()))
 
414
                if (state->flip_screen())
415
415
                {
416
416
                        scrollx = -scrollx;
417
417
                        scrolly = -scrolly;