summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/alpha68k.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/alpha68k.cpp')
-rw-r--r--src/mame/video/alpha68k.cpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/mame/video/alpha68k.cpp b/src/mame/video/alpha68k.cpp
index 780687c445f..9c1aa98d4d7 100644
--- a/src/mame/video/alpha68k.cpp
+++ b/src/mame/video/alpha68k.cpp
@@ -296,17 +296,16 @@ uint32_t alpha68k_state::screen_update_alpha68k_I(screen_device &screen, bitmap_
//ZT
/******************************************************************************/
-PALETTE_INIT_MEMBER(alpha68k_state,kyros)
+void alpha68k_state::kyros_palette(palette_device &palette) const
{
const uint8_t *color_prom = memregion("proms")->base();
- int i;
/* create a lookup table for the palette */
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
{
- int r = pal4bit(color_prom[i + 0x000]);
- int g = pal4bit(color_prom[i + 0x100]);
- int b = pal4bit(color_prom[i + 0x200]);
+ int const r = pal4bit(color_prom[i + 0x000]);
+ int const g = pal4bit(color_prom[i + 0x100]);
+ int const b = pal4bit(color_prom[i + 0x200]);
palette.set_indirect_color(i, rgb_t(r, g, b));
}
@@ -314,24 +313,23 @@ PALETTE_INIT_MEMBER(alpha68k_state,kyros)
/* color_prom now points to the beginning of the lookup table */
color_prom += 0x300;
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
{
- uint8_t ctabentry = ((color_prom[i] & 0x0f) << 4) | (color_prom[i + 0x100] & 0x0f);
+ uint8_t const ctabentry = ((color_prom[i] & 0x0f) << 4) | (color_prom[i + 0x100] & 0x0f);
palette.set_pen_indirect(i, ctabentry);
}
}
-PALETTE_INIT_MEMBER(alpha68k_state,paddlem)
+void alpha68k_state::paddlem_palette(palette_device &palette) const
{
const uint8_t *color_prom = memregion("proms")->base();
- int i;
/* create a lookup table for the palette */
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
{
- int r = pal4bit(color_prom[i + 0x000]);
- int g = pal4bit(color_prom[i + 0x100]);
- int b = pal4bit(color_prom[i + 0x200]);
+ int const r = pal4bit(color_prom[i + 0x000]);
+ int const g = pal4bit(color_prom[i + 0x100]);
+ int const b = pal4bit(color_prom[i + 0x200]);
palette.set_indirect_color(i, rgb_t(r, g, b));
}
@@ -339,9 +337,9 @@ PALETTE_INIT_MEMBER(alpha68k_state,paddlem)
/* color_prom now points to the beginning of the lookup table */
color_prom += 0x300;
- for (i = 0; i < 0x400; i++)
+ for (int i = 0; i < 0x400; i++)
{
- uint8_t ctabentry = ((color_prom[i + 0x400] & 0x0f) << 4) | (color_prom[i] & 0x0f);
+ uint8_t const ctabentry = ((color_prom[i + 0x400] & 0x0f) << 4) | (color_prom[i] & 0x0f);
palette.set_pen_indirect(i, ctabentry);
}
}