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

« back to all changes in this revision

Viewing changes to src/mame/video/xevious.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:
26
26
***************************************************************************/
27
27
PALETTE_INIT( xevious )
28
28
{
 
29
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
29
30
        int i;
30
31
        #define TOTAL_COLORS(gfxn) (machine.gfx[gfxn]->total_colors * machine.gfx[gfxn]->color_granularity)
31
32
 
99
100
 
100
101
PALETTE_INIT( battles )
101
102
{
 
103
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
102
104
        int i;
103
105
 
104
106
        machine.colortable = colortable_alloc(machine, 128+1);
188
190
        UINT8 color = ((attr & 0x03) << 4) | ((attr & 0x3c) >> 2);
189
191
        SET_TILE_INFO(
190
192
                        0,
191
 
                        state->m_xevious_fg_videoram[tile_index] | (flip_screen_get(machine) ? 0x100 : 0),
 
193
                        state->m_xevious_fg_videoram[tile_index] | (state->flip_screen() ? 0x100 : 0),
192
194
                        color,
193
 
                        TILE_FLIPYX((attr & 0xc0) >> 6) ^ (flip_screen_get(machine) ? TILE_FLIPX : 0));
 
195
                        TILE_FLIPYX((attr & 0xc0) >> 6) ^ (state->flip_screen() ? TILE_FLIPX : 0));
194
196
}
195
197
 
196
198
static TILE_GET_INFO( get_bg_tile_info )
297
299
                state->m_fg_tilemap->set_scrolly(0,scroll);
298
300
                break;
299
301
        case 7:
300
 
                flip_screen_set(space->machine(), scroll & 1);
 
302
                state->flip_screen_set(scroll & 1);
301
303
                break;
302
304
   default:
303
305
                   logerror("CRTC WRITE REG: %x  Data: %03x\n",reg, scroll);
318
320
{
319
321
        xevious_state *state =  space->machine().driver_data<xevious_state>();
320
322
 
321
 
        UINT8 *rom2a = space->machine().region("gfx4")->base();
 
323
        UINT8 *rom2a = state->memregion("gfx4")->base();
322
324
        UINT8 *rom2b = rom2a+0x1000;
323
325
        UINT8 *rom2c = rom2a+0x3000;
324
326
        int adr_2b,adr_2c;
448
450
                        sx = spriteram_2[offs + 1] - 40 + 0x100*(spriteram_3[offs + 1] & 1);
449
451
                        sy = 28*8-spriteram_2[offs]-1;
450
452
 
451
 
                        if (flip_screen_get(machine))
 
453
                        if (state->flip_screen())
452
454
                        {
453
455
                                flipx = !flipx;
454
456
                                flipy = !flipy;