summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/snookr10.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/snookr10.cpp')
-rw-r--r--src/mame/video/snookr10.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/video/snookr10.cpp b/src/mame/video/snookr10.cpp
index ecc5529d71f..34ea2d82094 100644
--- a/src/mame/video/snookr10.cpp
+++ b/src/mame/video/snookr10.cpp
@@ -68,18 +68,18 @@ void snookr10_state::snookr10_palette(palette_device &palette) const
bit0 = BIT(color_prom[i], 0);
bit1 = BIT(color_prom[i], 1);
bit2 = BIT(color_prom[i], 2);
- int const r = combine_weights(weights_r, bit0, bit1, bit2);
+ int const r = combine_3_weights(weights_r, bit0, bit1, bit2);
// blue component
bit0 = BIT(color_prom[i], 3);
bit1 = BIT(color_prom[i], 4);
bit2 = BIT(color_prom[i], 5);
- int const b = combine_weights(weights_b, bit0, bit1, bit2);
+ int const b = combine_3_weights(weights_b, bit0, bit1, bit2);
// green component
bit0 = BIT(color_prom[i], 6);
bit1 = BIT(color_prom[i], 7);
- int const g = combine_weights(weights_g, bit0, bit1);
+ int const g = combine_2_weights(weights_g, bit0, bit1);
palette.set_pen_color(i, rgb_t(r, g, b));
}
@@ -132,18 +132,18 @@ void snookr10_state::apple10_palette(palette_device &palette) const
bit0 = BIT(color_prom[i], 0);
bit1 = BIT(color_prom[i], 1);
bit2 = BIT(color_prom[i], 2);
- int const r = combine_weights(weights_r, bit0, bit1, bit2);
+ int const r = combine_3_weights(weights_r, bit0, bit1, bit2);
/* blue component */
bit0 = BIT(color_prom[i], 3);
bit1 = BIT(color_prom[i], 4);
bit2 = BIT(color_prom[i], 5);
- int const b = combine_weights(weights_b, bit0, bit1, bit2);
+ int const b = combine_3_weights(weights_b, bit0, bit1, bit2);
/* green component */
bit0 = BIT(color_prom[i], 6);
bit1 = BIT(color_prom[i], 7);
- int const g = combine_weights(weights_g, bit0, bit1);
+ int const g = combine_2_weights(weights_g, bit0, bit1);
/* encrypted color matrix */
int const cn = bitswap<8>(i, 4, 5, 6, 7, 2, 3, 0, 1);
@@ -199,18 +199,18 @@ void snookr10_state::crystalc_palette(palette_device &palette) const
bit0 = BIT(color_prom[i], 0);
bit1 = BIT(color_prom[i], 1);
bit2 = BIT(color_prom[i], 2);
- int const r = combine_weights(weights_r, bit0, bit1, bit2);
+ int const r = combine_3_weights(weights_r, bit0, bit1, bit2);
// blue component
bit0 = BIT(color_prom[i], 3);
bit1 = BIT(color_prom[i], 4);
bit2 = BIT(color_prom[i], 5);
- int const b = combine_weights(weights_b, bit0, bit1, bit2);
+ int const b = combine_3_weights(weights_b, bit0, bit1, bit2);
// green component
bit0 = BIT(color_prom[i], 6);
bit1 = BIT(color_prom[i], 7);
- int const g = combine_weights(weights_g, bit0, bit1);
+ int const g = combine_2_weights(weights_g, bit0, bit1);
// encrypted color matrix
int const cn = bitswap<8>(i, 7, 5, 6, 4, 3, 2, 1, 0);