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

« back to all changes in this revision

Viewing changes to mess/src/mame/video/gatron.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
 
    GAME-A-TRON gambling hardware
4
 
    -----------------------------
5
 
 
6
 
    *** Video Hardware ***
7
 
 
8
 
    Written by Roberto Fresca.
9
 
 
10
 
 
11
 
    Games running on this hardware:
12
 
 
13
 
    * Poker 4-1,  1983, Game-A-Tron.
14
 
    * Pull Tabs,  1983, Game-A-Tron.
15
 
 
16
 
 
17
 
*******************************************************************************/
18
 
 
19
 
 
20
 
#include "emu.h"
21
 
#include "includes/gatron.h"
22
 
 
23
 
 
24
 
WRITE8_HANDLER( gat_videoram_w )
25
 
{
26
 
        gatron_state *state = space->machine().driver_data<gatron_state>();
27
 
        UINT8 *videoram = state->m_videoram;
28
 
        videoram[offset] = data;
29
 
        tilemap_mark_tile_dirty(state->m_bg_tilemap, offset);
30
 
}
31
 
 
32
 
static TILE_GET_INFO( get_bg_tile_info )
33
 
{
34
 
        gatron_state *state = machine.driver_data<gatron_state>();
35
 
        UINT8 *videoram = state->m_videoram;
36
 
/*  - bits -
37
 
    7654 3210
38
 
    xxxx xxxx   tiles code.
39
 
 
40
 
    only one color code
41
 
*/
42
 
 
43
 
        int code = videoram[tile_index];
44
 
 
45
 
        SET_TILE_INFO(0, code, 0, 0);
46
 
}
47
 
 
48
 
VIDEO_START( gat )
49
 
{
50
 
        gatron_state *state = machine.driver_data<gatron_state>();
51
 
        state->m_bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_cols, 8, 16, 48, 16);
52
 
}
53
 
 
54
 
SCREEN_UPDATE( gat )
55
 
{
56
 
        gatron_state *state = screen->machine().driver_data<gatron_state>();
57
 
        tilemap_draw(bitmap, cliprect, state->m_bg_tilemap, 0, 0);
58
 
        return 0;
59
 
}
60
 
 
61
 
PALETTE_INIT( gat )
62
 
{
63
 
}
64