~ubuntu-branches/debian/wheezy/mame/wheezy

« back to all changes in this revision

Viewing changes to src/mame/video/qdrmfgp.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:
10
10
 
11
11
 
12
12
 
13
 
void qdrmfgp_tile_callback(running_machine *machine, int layer, int *code, int *color, int *flags)
 
13
void qdrmfgp_tile_callback(running_machine &machine, int layer, int *code, int *color, int *flags)
14
14
{
15
 
        *color = ((*color>>2) & 0x0f) | qdrmfgp_get_palette();
 
15
        qdrmfgp_state *state = machine.driver_data<qdrmfgp_state>();
 
16
        *color = ((*color>>2) & 0x0f) | state->m_pal;
16
17
}
17
18
 
18
 
void qdrmfgp2_tile_callback(running_machine *machine, int layer, int *code, int *color, int *flags)
 
19
void qdrmfgp2_tile_callback(running_machine &machine, int layer, int *code, int *color, int *flags)
19
20
{
20
21
        *color = (*color>>1) & 0x7f;
21
22
}
28
29
 
29
30
VIDEO_START( qdrmfgp )
30
31
{
31
 
        device_t *k056832 = machine->device("k056832");
 
32
        device_t *k056832 = machine.device("k056832");
32
33
 
33
34
        k056832_set_layer_association(k056832, 0);
34
35
 
40
41
 
41
42
VIDEO_START( qdrmfgp2 )
42
43
{
43
 
        device_t *k056832 = machine->device("k056832");
 
44
        device_t *k056832 = machine.device("k056832");
44
45
 
45
46
        k056832_set_layer_association(k056832, 0);
46
47
 
56
57
 
57
58
***************************************************************************/
58
59
 
59
 
VIDEO_UPDATE( qdrmfgp )
 
60
SCREEN_UPDATE( qdrmfgp )
60
61
{
61
 
        device_t *k056832 = screen->machine->device("k056832");
62
 
        bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine));
 
62
        device_t *k056832 = screen->machine().device("k056832");
 
63
        bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine()));
63
64
 
64
65
        k056832_tilemap_draw(k056832, bitmap, cliprect, 3, 0, 1);
65
66
        k056832_tilemap_draw(k056832, bitmap, cliprect, 2, 0, 2);