summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/hcastle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/hcastle.cpp')
-rw-r--r--src/mame/video/hcastle.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/mame/video/hcastle.cpp b/src/mame/video/hcastle.cpp
index dba402278e4..72deaece319 100644
--- a/src/mame/video/hcastle.cpp
+++ b/src/mame/video/hcastle.cpp
@@ -11,21 +11,16 @@
#include "screen.h"
-PALETTE_INIT_MEMBER(hcastle_state, hcastle)
+void hcastle_state::hcastle_palette(palette_device &palette) const
{
- const uint8_t *color_prom = memregion("proms")->base();
- int chip;
-
- for (chip = 0; chip < 2; chip++)
+ uint8_t const *const color_prom = memregion("proms")->base();
+ for (int chip = 0; chip < 2; chip++)
{
- int pal;
-
- for (pal = 0; pal < 8; pal++)
+ for (int pal = 0; pal < 8; pal++)
{
- int i;
- int clut = (chip << 1) | (pal & 1);
+ int const clut = (chip << 1) | (pal & 1);
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
{
uint8_t ctabentry;