summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/equites.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/equites.cpp')
-rw-r--r--src/mame/video/equites.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mame/video/equites.cpp b/src/mame/video/equites.cpp
index 82dec063f58..55ef68af119 100644
--- a/src/mame/video/equites.cpp
+++ b/src/mame/video/equites.cpp
@@ -18,45 +18,43 @@
*
*************************************/
-PALETTE_INIT_MEMBER(equites_state,equites)
+void equites_state::equites_palette(palette_device &palette) const
{
const uint8_t *color_prom = memregion("proms")->base();
- int i;
- for (i = 0; i < 256; i++)
+ for (int i = 0; i < 256; i++)
palette.set_indirect_color(i, rgb_t(pal4bit(color_prom[i]), pal4bit(color_prom[i + 0x100]), pal4bit(color_prom[i + 0x200])));
// point to the CLUT
color_prom += 0x380;
- for (i = 0; i < 256; i++)
+ for (int i = 0; i < 256; i++)
palette.set_pen_indirect(i, i);
- for (i = 0; i < 0x80; i++)
+ for (int i = 0; i < 0x80; i++)
palette.set_pen_indirect(i + 0x100, color_prom[i]);
}
-PALETTE_INIT_MEMBER(splndrbt_state,splndrbt)
+void splndrbt_state::splndrbt_palette(palette_device &palette) const
{
const uint8_t *color_prom = memregion("proms")->base();
- int i;
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
palette.set_indirect_color(i, rgb_t(pal4bit(color_prom[i]), pal4bit(color_prom[i + 0x100]), pal4bit(color_prom[i + 0x200])));
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
palette.set_pen_indirect(i, i);
// point to the bg CLUT
color_prom += 0x300;
- for (i = 0; i < 0x80; i++)
+ for (int i = 0; i < 0x80; i++)
palette.set_pen_indirect(i + 0x100, color_prom[i] + 0x10);
// point to the sprite CLUT
color_prom += 0x100;
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
palette.set_pen_indirect(i + 0x180, color_prom[i]);
}