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

« back to all changes in this revision

Viewing changes to mess/src/mess/video/orao.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
 
        Orao video driver by Miodrag Milanovic
4
 
 
5
 
        01/03/2008 Updated to work with latest SVN code
6
 
        22/02/2008 Preliminary driver.
7
 
 
8
 
****************************************************************************/
9
 
 
10
 
#include "emu.h"
11
 
#include "includes/orao.h"
12
 
 
13
 
 
14
 
VIDEO_START( orao )
15
 
{
16
 
}
17
 
 
18
 
SCREEN_UPDATE( orao )
19
 
{
20
 
        orao_state *state = screen->machine().driver_data<orao_state>();
21
 
        UINT8 code;
22
 
        int y, x, b;
23
 
 
24
 
        int addr = 0;
25
 
        for (y = 0; y < 256; y++)
26
 
        {
27
 
                int horpos = 0;
28
 
                for (x = 0; x < 32; x++)
29
 
                {
30
 
                        code = state->m_video_ram[addr++];
31
 
                        for (b = 0; b < 8; b++)
32
 
                        {
33
 
                                *BITMAP_ADDR16(bitmap, y, horpos++) =  (code >> b) & 0x01;
34
 
                        }
35
 
                }
36
 
        }
37
 
        return 0;
38
 
}
39
 
 
40