summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/m62.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/m62.c')
-rw-r--r--src/mame/video/m62.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/m62.c b/src/mame/video/m62.c
index 6d7380ed6d6..65da6b912e1 100644
--- a/src/mame/video/m62.c
+++ b/src/mame/video/m62.c
@@ -190,7 +190,7 @@ void m62_state::m62_amplify_contrast(palette_t *palette, UINT32 numcolors)
for (i=0;i < numcolors;i++)
{
rgb_t rgb = palette->entry_color(i);
- UINT32 y = 299 * RGB_RED(rgb) + 587 * RGB_GREEN(rgb) + 114 * RGB_BLUE(rgb);
+ UINT32 y = 299 * rgb.r() + 587 * rgb.g() + 114 * rgb.b();
ymax = MAX(ymax, y);
}