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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
WRITE8_HANDLER( spcforce_flip_screen_w )
14
14
{
15
 
        flip_screen_set(space->machine, ~data & 0x01);
 
15
        flip_screen_set(space->machine(), ~data & 0x01);
16
16
}
17
17
 
18
18
 
19
 
VIDEO_UPDATE( spcforce )
 
19
SCREEN_UPDATE( spcforce )
20
20
{
21
 
        spcforce_state *state = screen->machine->driver_data<spcforce_state>();
 
21
        spcforce_state *state = screen->machine().driver_data<spcforce_state>();
22
22
        int offs;
23
 
        int flip = flip_screen_get(screen->machine);
 
23
        int flip = flip_screen_get(screen->machine());
24
24
 
25
25
        /* draw the characters as sprites because they could be overlapping */
26
26
        bitmap_fill(bitmap,cliprect,0);
28
28
        {
29
29
                int code,sx,sy,col;
30
30
 
31
 
                sy = 8 * (offs / 32) -  (state->scrollram[offs]       & 0x0f);
32
 
                sx = 8 * (offs % 32) + ((state->scrollram[offs] >> 4) & 0x0f);
 
31
                sy = 8 * (offs / 32) -  (state->m_scrollram[offs]       & 0x0f);
 
32
                sx = 8 * (offs % 32) + ((state->m_scrollram[offs] >> 4) & 0x0f);
33
33
 
34
 
                code = state->videoram[offs] + ((state->colorram[offs] & 0x01) << 8);
35
 
                col  = (~state->colorram[offs] >> 4) & 0x07;
 
34
                code = state->m_videoram[offs] + ((state->m_colorram[offs] & 0x01) << 8);
 
35
                col  = (~state->m_colorram[offs] >> 4) & 0x07;
36
36
 
37
37
                if (flip)
38
38
                {
40
40
                        sy = 248 - sy;
41
41
                }
42
42
 
43
 
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[0],
 
43
                drawgfx_transpen(bitmap,cliprect,screen->machine().gfx[0],
44
44
                                code, col,
45
45
                                flip, flip,
46
46
                                sx, sy,0);