summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author ted green <tedgreen99@inbox.com>2015-06-08 21:08:10 -0600
committer ted green <tedgreen99@inbox.com>2015-06-08 21:08:23 -0600
commit01eef6ee909d7cde910ca22cc44a0e2b4c93c8a2 (patch)
tree394f81e84aeec707fe0125f2e383431766b8c6fa /src
parentd3ec864e018a0012fec32303c0719f97f66bac31 (diff)
Fix msvc build
Diffstat (limited to 'src')
-rw-r--r--src/emu/video/vooddefs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/video/vooddefs.h b/src/emu/video/vooddefs.h
index 24adb7b510c..437b3c84459 100644
--- a/src/emu/video/vooddefs.h
+++ b/src/emu/video/vooddefs.h
@@ -3147,7 +3147,7 @@ ATTR_FORCE_INLINE void applyFogging(voodoo_state *v, UINT32 fogModeReg, UINT32 f
/* non-constant fog comes from several sources */
else
{
- INT16 fogblend = 0;
+ INT32 fogblend = 0;
/* if fog_add is zero, we start with the fog color */
if (FOGMODE_FOG_ADD(fogModeReg))
@@ -3216,7 +3216,7 @@ ATTR_FORCE_INLINE void applyFogging(voodoo_state *v, UINT32 fogModeReg, UINT32 f
/* if fog_mult is 0, we add this to the original color */
if (FOGMODE_FOG_MULT(fogModeReg) == 0)
{
- rgbaint_scale_immediate_add_and_clamp(&tmpA, fogblend, &tmpB);
+ rgbaint_scale_immediate_add_and_clamp(&tmpA, (INT16) fogblend, &tmpB);
//color += fog;
//(RR) += fr;
//(GG) += fg;