From dced6eab22c4d3a3e064fc25102c3bfd5ab3b4e0 Mon Sep 17 00:00:00 2001 From: ted green Date: Mon, 8 Jun 2015 13:58:51 -0600 Subject: [PATCH] One last 32 bit fix --- src/emu/video/vooddefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/video/vooddefs.h b/src/emu/video/vooddefs.h index bc346133cfe..24adb7b510c 100644 --- a/src/emu/video/vooddefs.h +++ b/src/emu/video/vooddefs.h @@ -2231,7 +2231,7 @@ ATTR_FORCE_INLINE UINT32 clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32 #else -ATTR_FORCE_INLINE rgb_union clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32 itera, UINT32 FBZCP) +ATTR_FORCE_INLINE UINT32 clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32 itera, UINT32 FBZCP) { rgb_union result; INT16 r, g, b, a; @@ -2277,7 +2277,7 @@ ATTR_FORCE_INLINE rgb_union clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT result.rgb.b = (b < 0) ? 0 : (b > 0xff) ? 0xff : b; result.rgb.a = (a < 0) ? 0 : (a > 0xff) ? 0xff : a; } - return result; + return result.u; } #endif