summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/fastlane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/fastlane.cpp')
-rw-r--r--src/mame/video/fastlane.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mame/video/fastlane.cpp b/src/mame/video/fastlane.cpp
index ef4a91248ea..e9b212245f4 100644
--- a/src/mame/video/fastlane.cpp
+++ b/src/mame/video/fastlane.cpp
@@ -4,18 +4,14 @@
#include "includes/fastlane.h"
-PALETTE_INIT_MEMBER(fastlane_state, fastlane)
+void fastlane_state::fastlane_palette(palette_device &palette) const
{
- const uint8_t *color_prom = memregion("proms")->base();
- int pal;
-
- for (pal = 0; pal < 0x10; pal++)
+ uint8_t const *const color_prom = memregion("proms")->base();
+ for (int pal = 0; pal < 0x10; pal++)
{
- int i;
-
- for (i = 0; i < 0x400; i++)
+ for (int i = 0; i < 0x400; i++)
{
- uint8_t ctabentry = (i & 0x3f0) | color_prom[(pal << 4) | (i & 0x0f)];
+ uint8_t const ctabentry = (i & 0x3f0) | color_prom[(pal << 4) | (i & 0x0f)];
palette.set_pen_indirect((pal << 10) | i, ctabentry);
}
}