summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/widgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/widgets.cpp')
-rw-r--r--src/frontend/mame/ui/widgets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/widgets.cpp b/src/frontend/mame/ui/widgets.cpp
index 956e251dba6..da0b6c12538 100644
--- a/src/frontend/mame/ui/widgets.cpp
+++ b/src/frontend/mame/ui/widgets.cpp
@@ -95,14 +95,14 @@ void widgets_manager::render_triangle(bitmap_argb32 &dest, bitmap_argb32 &source
// first column we only consume one pixel
if (x == 0)
{
- dalpha = MIN(0xff, linewidth);
+ dalpha = std::min(0xff, linewidth);
target[x] = rgb_t(dalpha, 0xff, 0xff, 0xff);
}
// remaining columns consume two pixels, one on each side
else
{
- dalpha = MIN(0x1fe, linewidth);
+ dalpha = std::min(0x1fe, linewidth);
target[x] = target[-x] = rgb_t(dalpha / 2, 0xff, 0xff, 0xff);
}