mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fix msvc build
This commit is contained in:
parent
d3ec864e01
commit
01eef6ee90
@ -3147,7 +3147,7 @@ ATTR_FORCE_INLINE void applyFogging(voodoo_state *v, UINT32 fogModeReg, UINT32 f
|
|||||||
/* non-constant fog comes from several sources */
|
/* non-constant fog comes from several sources */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
INT16 fogblend = 0;
|
INT32 fogblend = 0;
|
||||||
|
|
||||||
/* if fog_add is zero, we start with the fog color */
|
/* if fog_add is zero, we start with the fog color */
|
||||||
if (FOGMODE_FOG_ADD(fogModeReg))
|
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 fog_mult is 0, we add this to the original color */
|
||||||
if (FOGMODE_FOG_MULT(fogModeReg) == 0)
|
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;
|
//color += fog;
|
||||||
//(RR) += fr;
|
//(RR) += fr;
|
||||||
//(GG) += fg;
|
//(GG) += fg;
|
||||||
|
Loading…
Reference in New Issue
Block a user