~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/mame/video/actfancr.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*******************************************************************************
2
 
 
3
 
    actfancr - Bryan McPhail, mish@tendril.co.uk
4
 
 
5
 
*******************************************************************************/
6
 
 
7
 
#include "emu.h"
8
 
#include "includes/actfancr.h"
9
 
#include "video/decbac06.h"
10
 
#include "video/decmxc06.h"
11
 
 
12
 
/******************************************************************************/
13
 
 
14
 
static void register_savestate( running_machine &machine )
15
 
{
16
 
        actfancr_state *state = machine.driver_data<actfancr_state>();
17
 
        state->save_item(NAME(state->m_flipscreen));
18
 
}
19
 
 
20
 
VIDEO_START( actfancr )
21
 
{
22
 
        register_savestate(machine);
23
 
}
24
 
 
25
 
/******************************************************************************/
26
 
 
27
 
SCREEN_UPDATE( actfancr )
28
 
{
29
 
        actfancr_state *state = screen->machine().driver_data<actfancr_state>();
30
 
 
31
 
        /* Draw playfield */
32
 
        //state->m_flipscreen = state->m_control_2[0] & 0x80;
33
 
        //tilemap_set_flip_all(screen->machine(), state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
34
 
 
35
 
        screen->machine().device<deco_bac06_device>("tilegen1")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
36
 
        screen->machine().device<deco_mxc06_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16, 0x00, 0x00, 0x0f);
37
 
        screen->machine().device<deco_bac06_device>("tilegen2")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
38
 
 
39
 
        return 0;
40
 
}
41