summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/jackal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/jackal.cpp')
-rw-r--r--src/mame/video/jackal.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/video/jackal.cpp b/src/mame/video/jackal.cpp
index f40953f0984..a234e847098 100644
--- a/src/mame/video/jackal.cpp
+++ b/src/mame/video/jackal.cpp
@@ -13,26 +13,25 @@
#include "includes/jackal.h"
-PALETTE_INIT_MEMBER(jackal_state, jackal)
+void jackal_state::jackal_palette(palette_device &palette) const
{
- const uint8_t *color_prom = memregion("proms")->base();
- int i;
+ uint8_t const *const color_prom = memregion("proms")->base();
- for (i = 0; i < 0x100; i++)
+ for (int i = 0; i < 0x100; i++)
{
- uint16_t ctabentry = i | 0x100;
+ uint16_t const ctabentry = i | 0x100;
palette.set_pen_indirect(i, ctabentry);
}
- for (i = 0x100; i < 0x200; i++)
+ for (int i = 0x100; i < 0x200; i++)
{
- uint16_t ctabentry = color_prom[i - 0x100] & 0x0f;
+ uint16_t const ctabentry = color_prom[i - 0x100] & 0x0f;
palette.set_pen_indirect(i, ctabentry);
}
- for (i = 0x200; i < 0x300; i++)
+ for (int i = 0x200; i < 0x300; i++)
{
- uint16_t ctabentry = (color_prom[i - 0x100] & 0x0f) | 0x10;
+ uint16_t const ctabentry = (color_prom[i - 0x100] & 0x0f) | 0x10;
palette.set_pen_indirect(i, ctabentry);
}
}