From a0ce6c3b37050c1a765ae13babb109c729153989 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 1 Aug 2016 01:17:27 +1000 Subject: fix after pass through the diff --- src/lib/util/palette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/util/palette.cpp') diff --git a/src/lib/util/palette.cpp b/src/lib/util/palette.cpp index e918bb7adb2..196031d3694 100644 --- a/src/lib/util/palette.cpp +++ b/src/lib/util/palette.cpp @@ -514,8 +514,8 @@ void palette_t::normalize_range(UINT32 start, UINT32 end, int lum_min, int lum_m { rgb_t rgb = m_entry_color[index]; UINT32 y = 299 * rgb.r() + 587 * rgb.g() + 114 * rgb.b(); - ymin = std::min(ymin, y); - ymax = std::max(ymax, y); + ymin = (std::min)(ymin, y); + ymax = (std::max)(ymax, y); } // determine target minimum/maximum -- cgit v1.2.3-70-g09d2