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

« back to all changes in this revision

Viewing changes to src/mame/video/galpanic.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:
39
39
 
40
40
WRITE16_HANDLER( galpanic_paletteram_w )
41
41
{
42
 
        data = COMBINE_DATA(&space->machine().generic.paletteram.u16[offset]);
 
42
        galpanic_state *state = space->machine().driver_data<galpanic_state>();
 
43
        data = COMBINE_DATA(&state->m_generic_paletteram_16[offset]);
43
44
        /* bit 0 seems to be a transparency flag for the front bitmap */
44
45
        palette_set_color_rgb(space->machine(),offset,pal5bit(data >> 6),pal5bit(data >> 11),pal5bit(data >> 1));
45
46
}
52
53
        int offs;
53
54
        int sx=0, sy=0;
54
55
 
55
 
        for (offs = 0;offs < state->m_spriteram_size/2;offs += 4)
 
56
        for (offs = 0;offs < state->m_spriteram.bytes()/2;offs += 4)
56
57
        {
57
58
                int code,color,flipx,flipy;
58
59
 
88
89
        galpanic_state *state = machine.driver_data<galpanic_state>();
89
90
        int offs;
90
91
 
91
 
        for (offs = 0;offs < state->m_fgvideoram_size/2;offs++)
 
92
        for (offs = 0;offs < state->m_fgvideoram.bytes()/2;offs++)
92
93
        {
93
94
                int sx,sy,color;
94
95