diff options
author | 2012-08-21 10:41:19 +0000 | |
---|---|---|
committer | 2012-08-21 10:41:19 +0000 | |
commit | 7285b359d259b2ae0fdf85096571c386ec8c991a (patch) | |
tree | a027aff57f1a255f9ec6cfd3b68cabe4b6683998 /src/mess/video/galeb.c | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/video/galeb.c')
-rw-r--r-- | src/mess/video/galeb.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/mess/video/galeb.c b/src/mess/video/galeb.c new file mode 100644 index 00000000000..a38fa53b2ae --- /dev/null +++ b/src/mess/video/galeb.c @@ -0,0 +1,45 @@ +/*************************************************************************** + + Galeb video driver by Miodrag Milanovic + + 01/03/2008 Updated to work with latest SVN code + 22/02/2008 Preliminary driver. + +****************************************************************************/ + + +#include "emu.h" +#include "includes/galeb.h" + + +const gfx_layout galeb_charlayout = +{ + 8, 8, /* 8x8 characters */ + 256, /* 256 characters */ + 1, /* 1 bits per pixel */ + {0}, /* no bitplanes; 1 bit per pixel */ + {7, 6, 5, 4, 3, 2, 1, 0}, + {0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8}, + 8*8 /* size of one char */ +}; + +VIDEO_START( galeb ) +{ +} + +SCREEN_UPDATE_IND16( galeb ) +{ + galeb_state *state = screen.machine().driver_data<galeb_state>(); + int x,y; + + for(y = 0; y < 16; y++ ) + { + for(x = 0; x < 48; x++ ) + { + int code = state->m_video_ram[15 + x + y*64]; + drawgfx_opaque(bitmap, cliprect, screen.machine().gfx[0], code , 0, 0,0, x*8,y*8); + } + } + return 0; +} + |