diff --git a/src/mess/drivers/casloopy.c b/src/mess/drivers/casloopy.c index bb659730d13..6680f887e3e 100644 --- a/src/mess/drivers/casloopy.c +++ b/src/mess/drivers/casloopy.c @@ -158,9 +158,12 @@ class casloopy_state : public driver_device public: casloopy_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) , - m_bios_rom(*this, "bios_rom"){ } + m_bios_rom(*this, "bios_rom"), + m_vregs(*this, "vregs") + { } required_shared_ptr m_bios_rom; + required_shared_ptr m_vregs; UINT16 *m_paletteram; UINT8 *m_vram; UINT8 *m_bitmap_vram; @@ -228,22 +231,6 @@ UINT32 casloopy_state::screen_update_casloopy(screen_device &screen, bitmap_ind1 int x,y; int count; - count = 0; - - for (y=0;y<32;y++) - { - for (x=0;x<32;x++) - { - UINT16 tile = (m_vram[count+1])|(m_vram[count]<<8); - - tile &= 0x3ff; //??? - - drawgfx_opaque(bitmap,cliprect,gfx,tile,7,0,0,x*8,y*8); - - count+=2; - } - } - static int test; if(machine().input().code_pressed(KEYCODE_Z)) @@ -254,6 +241,31 @@ UINT32 casloopy_state::screen_update_casloopy(screen_device &screen, bitmap_ind1 popmessage("%08x",test); + #if 0 + int r,g,b; + + r = pal5bit((m_vregs[0x4/4] >> 10) & 0x1f); + g = pal5bit((m_vregs[0x4/4] >> 5) & 0x1f); + b = pal5bit((m_vregs[0x4/4] >> 0) & 0x1f); + palette_set_color(machine(),0x100,MAKE_RGB(r^0xff,g^0xff,b^0xff)); + bitmap.fill( 0x100 ,cliprect); + #endif + + count = test; + for (y=0;y<32;y++) + { + for (x=0;x<32;x++) + { + UINT16 tile = (m_vram[count+1])|(m_vram[count]<<8); + + tile &= 0x3ff; //??? + + drawgfx_transpen(bitmap,cliprect,gfx,tile,7,0,0,x*8,y*8,-1); + + count+=2; + } + } + count = test; for (y=cliprect.min_y;y