summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gticlub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gticlub.c')
-rw-r--r--src/mame/video/gticlub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/gticlub.c b/src/mame/video/gticlub.c
index 2c982ca48f3..689307ff894 100644
--- a/src/mame/video/gticlub.c
+++ b/src/mame/video/gticlub.c
@@ -1576,13 +1576,13 @@ void K001005_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect)
void K001005_swap_buffers(running_machine &machine)
{
- driver_device *state = machine.driver_data<driver_device>();
+ palette_device *m_palette = machine.first_screen()->palette();
K001005_bitmap_page ^= 1;
//if (K001005_status == 2)
{
float zvalue = ZBUFFER_MAX;
- K001005_bitmap[K001005_bitmap_page]->fill(state->m_palette->pen(0)&0x00ffffff, K001005_cliprect);
+ K001005_bitmap[K001005_bitmap_page]->fill(m_palette->pen(0)&0x00ffffff, K001005_cliprect);
K001005_zbuffer->fill(*(int*)&zvalue, K001005_cliprect);
}
}