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

« back to all changes in this revision

Viewing changes to mess/src/mess/video/ac1.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
 
        AC1 video driver by Miodrag Milanovic
4
 
 
5
 
        15/01/2009 Preliminary driver.
6
 
 
7
 
****************************************************************************/
8
 
 
9
 
#include "emu.h"
10
 
#include "includes/ac1.h"
11
 
 
12
 
#define AC1_VIDEO_MEMORY                0x1000
13
 
 
14
 
const gfx_layout ac1_charlayout =
15
 
{
16
 
        6, 8,                           /* 6x8 characters */
17
 
        256,                            /* 256 characters */
18
 
        1,                                  /* 1 bits per pixel */
19
 
        {0},                            /* no bitplanes; 1 bit per pixel */
20
 
        {7, 6, 5, 4, 3, 2},
21
 
        {0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8},
22
 
        8*8                                     /* size of one char */
23
 
};
24
 
 
25
 
VIDEO_START( ac1 )
26
 
{
27
 
}
28
 
 
29
 
SCREEN_UPDATE( ac1 )
30
 
{
31
 
        int x,y;
32
 
        address_space *space = screen->machine().device("maincpu")->memory().space(AS_PROGRAM);
33
 
 
34
 
        for(y = 0; y < 16; y++ )
35
 
        {
36
 
                for(x = 0; x < 64; x++ )
37
 
                {
38
 
                        int code = space->read_byte(AC1_VIDEO_MEMORY + x + y*64);
39
 
                        drawgfx_opaque(bitmap, NULL, screen->machine().gfx[0],  code , 0, 0,0, 63*6-x*6,15*8-y*8);
40
 
                }
41
 
        }
42
 
        return 0;
43
 
}
44
 
 
45
 
SCREEN_UPDATE( ac1_32 )
46
 
{
47
 
        int x,y;
48
 
        address_space *space = screen->machine().device("maincpu")->memory().space(AS_PROGRAM);
49
 
 
50
 
        for(y = 0; y < 32; y++ )
51
 
        {
52
 
                for(x = 0; x < 64; x++ )
53
 
                {
54
 
                        int code = space->read_byte(AC1_VIDEO_MEMORY + x + y*64);
55
 
                        drawgfx_opaque(bitmap, NULL, screen->machine().gfx[0],  code , 0, 0,0, 63*6-x*6,31*8-y*8);
56
 
                }
57
 
        }
58
 
        return 0;
59
 
}
60
 
 
61