summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/bladestl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/bladestl.cpp')
-rw-r--r--src/mame/video/bladestl.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/video/bladestl.cpp b/src/mame/video/bladestl.cpp
index 0e4cddb942c..a4e738ebc21 100644
--- a/src/mame/video/bladestl.cpp
+++ b/src/mame/video/bladestl.cpp
@@ -4,19 +4,18 @@
#include "includes/bladestl.h"
-PALETTE_INIT_MEMBER(bladestl_state, bladestl)
+void bladestl_state::bladestl_palette(palette_device &palette) const
{
- const uint8_t *color_prom = memregion("proms")->base();
- int i;
+ uint8_t const *const color_prom = memregion("proms")->base();
- /* characters use pens 0x00-0x1f, no look-up table */
- for (i = 0; i < 0x20; i++)
+ // characters use pens 0x00-0x1f, no look-up table
+ for (int i = 0; i < 0x20; i++)
palette.set_pen_indirect(i, i);
- /* sprites use pens 0x20-0x2f */
- for (i = 0x20; i < 0x120; i++)
+ // sprites use pens 0x20-0x2f
+ for (int i = 0x20; i < 0x120; i++)
{
- uint8_t ctabentry = (color_prom[i - 0x20] & 0x0f) | 0x20;
+ uint8_t const ctabentry = (color_prom[i - 0x20] & 0x0f) | 0x20;
palette.set_pen_indirect(i, ctabentry);
}
}