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

« back to all changes in this revision

Viewing changes to src/mame/video/eolith.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:
1
1
#include "emu.h"
2
2
#include "includes/eolith.h"
3
3
 
4
 
int eolith_buffer = 0;
5
 
static UINT32 *vram;
6
 
 
7
 
 
8
4
 
9
5
WRITE32_HANDLER( eolith_vram_w )
10
6
{
11
 
        UINT32 *dest = &vram[offset+(0x40000/4)*eolith_buffer];
 
7
        eolith_state *state = space->machine().driver_data<eolith_state>();
 
8
        UINT32 *dest = &state->m_vram[offset+(0x40000/4)*state->m_buffer];
12
9
 
13
10
        if (mem_mask == 0xffffffff)
14
11
        {
26
23
 
27
24
READ32_HANDLER( eolith_vram_r )
28
25
{
29
 
        return vram[offset+(0x40000/4)*eolith_buffer];
 
26
        eolith_state *state = space->machine().driver_data<eolith_state>();
 
27
        return state->m_vram[offset+(0x40000/4)*state->m_buffer];
30
28
}
31
29
 
32
30
VIDEO_START( eolith )
33
31
{
34
 
        vram = auto_alloc_array(machine, UINT32, 0x40000*2/4);
 
32
        eolith_state *state = machine.driver_data<eolith_state>();
 
33
        state->m_vram = auto_alloc_array(machine, UINT32, 0x40000*2/4);
35
34
}
36
35
 
37
 
VIDEO_UPDATE( eolith )
 
36
SCREEN_UPDATE( eolith )
38
37
{
 
38
        eolith_state *state = screen->machine().driver_data<eolith_state>();
39
39
        int y;
40
40
 
41
41
        for (y = 0; y < 240; y++)
42
42
        {
43
43
                int x;
44
 
                UINT32 *src = &vram[(eolith_buffer ? 0 : 0x10000) | (y * (336 / 2))];
 
44
                UINT32 *src = &state->m_vram[(state->m_buffer ? 0 : 0x10000) | (y * (336 / 2))];
45
45
                UINT16 *dest = BITMAP_ADDR16(bitmap, y, 0);
46
46
 
47
47
                for (x = 0; x < 320; x += 2)