From d47a1a68924c99d6cdf55fcb61e0ca7d753c0be0 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 13 Jul 2021 09:21:45 -0700 Subject: voodoo: Fix dither subtraction. Fixes squares around balls in virtpool. --- src/devices/video/voodoo_render.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/video/voodoo_render.h b/src/devices/video/voodoo_render.h index b428494f5ef..afdbcfc46e2 100644 --- a/src/devices/video/voodoo_render.h +++ b/src/devices/video/voodoo_render.h @@ -93,7 +93,7 @@ public: // return the subtractive dither value for alpha blending u32 subtract(s32 x) const { - return (m_dither_raw != nullptr) ? (15 - (m_dither_raw[x & 3] >> 1)) : 0; + return (m_dither_raw != nullptr) ? ((15 - m_dither_raw[x & 3]) >> 1) : 0; } // allocate and initialize static tables -- cgit v1.2.3