summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/flower.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/flower.c')
-rw-r--r--src/mame/video/flower.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/video/flower.c b/src/mame/video/flower.c
index 1f673f6d3a3..17c20e66643 100644
--- a/src/mame/video/flower.c
+++ b/src/mame/video/flower.c
@@ -4,14 +4,11 @@
#include "includes/flower.h"
-void flower_state::palette_init()
+PALETTE_INIT_MEMBER(flower_state, flower)
{
const UINT8 *color_prom = memregion("proms")->base();
int i;
- /* allocate the colortable */
- machine().colortable = colortable_alloc(machine(), 0x100);
-
/* create a lookup table for the palette */
for (i = 0; i < 0x100; i++)
{
@@ -19,11 +16,11 @@ void flower_state::palette_init()
int g = pal4bit(color_prom[i + 0x100]);
int b = pal4bit(color_prom[i + 0x200]);
- colortable_palette_set_color(machine().colortable, i, rgb_t(r, g, b));
+ palette.set_indirect_color(i, rgb_t(r, g, b));
}
for (i = 0; i < 0x100; i++)
- colortable_entry_set_value(machine().colortable, i, i);
+ palette.set_pen_indirect(i, i);
}
void flower_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect )
@@ -104,7 +101,7 @@ void flower_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect
if (xblock) sxoffs+=xblocksizeinpixels;
if (yblock) syoffs+=yblocksizeinpixels;
- gfx->zoom_transpen(bitmap,cliprect,
+ gfx->zoom_transpen(m_palette,bitmap,cliprect,
code+yoffs+xoffs,
color,
flipx,flipy,