diff options
author | Vas Crabb <vas@vastheman.com> | 2019-02-09 21:28:39 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2019-02-09 21:28:39 +1100 |
commit | 422d365332f6868e6c09db48812d5ff9df52f259 (patch) | |
tree | aa2ad472bbb0db9dcbb45b0a8dbe01af4160f258 /src/mame/drivers/shougi.cpp | |
parent | 536408762930a91f92208d85e2ecac270f5ec140 (diff) |
get rid of some copy/pasted macros for different numbers of arguments (nw)
Diffstat (limited to 'src/mame/drivers/shougi.cpp')
-rw-r--r-- | src/mame/drivers/shougi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/shougi.cpp b/src/mame/drivers/shougi.cpp index 8f5e5476d7e..08014c47354 100644 --- a/src/mame/drivers/shougi.cpp +++ b/src/mame/drivers/shougi.cpp @@ -182,18 +182,18 @@ void shougi_state::shougi_palette(palette_device &palette) const bit0 = (color_prom[i] >> 0) & 0x01; bit1 = (color_prom[i] >> 1) & 0x01; bit2 = (color_prom[i] >> 2) & 0x01; - int const r = combine_3_weights(weights_r, bit0, bit1, bit2); + int const r = combine_weights(weights_r, bit0, bit1, bit2); /* green component */ bit0 = (color_prom[i] >> 3) & 0x01; bit1 = (color_prom[i] >> 4) & 0x01; bit2 = (color_prom[i] >> 5) & 0x01; - int const g = combine_3_weights(weights_g, bit0, bit1, bit2); + int const g = combine_weights(weights_g, bit0, bit1, bit2); /* blue component */ bit0 = (color_prom[i] >> 6) & 0x01; bit1 = (color_prom[i] >> 7) & 0x01; - int const b = combine_2_weights(weights_b, bit0, bit1); + int const b = combine_weights(weights_b, bit0, bit1); palette.set_pen_color(i,rgb_t(r,g,b)); } |