line break consistency fix: Util.cpp

This commit is contained in:
unknown 2015-03-11 17:15:42 -04:00
parent 3bf2ac641b
commit 42de60ca44
1 changed files with 18 additions and 18 deletions

View File

@ -909,7 +909,7 @@ __inline double interp3p(float a, float b, float c, double r1, double r2)
{
return (a)+(((b)+((c)-(b))*(r2))-(a))*(r1);
}
/*
/*
#define interp3p(a, b, c, r1, r2) \
(a+(((b)+((c)-(b))*(r2))-(a))*(r1))
*/
@ -1925,32 +1925,32 @@ void update ()
if (((rdp.flags & ZBUF_ENABLED) || rdp.zsrc == 1) && rdp.cycle_mode < 2)
{
if (rdp.flags & ZBUF_COMPARE)
if (rdp.flags & ZBUF_COMPARE)
{
switch ((rdp.rm & 0xC00)>>10) {
case 0:
grDepthBiasLevel(0);
grDepthBufferFunction (settings.zmode_compare_less ? GR_CMP_LESS : GR_CMP_LEQUAL);
break;
case 1:
grDepthBiasLevel(-4);
grDepthBufferFunction (settings.zmode_compare_less ? GR_CMP_LESS : GR_CMP_LEQUAL);
break;
case 2:
case 0:
grDepthBiasLevel(0);
grDepthBufferFunction (settings.zmode_compare_less ? GR_CMP_LESS : GR_CMP_LEQUAL);
break;
case 1:
grDepthBiasLevel(-4);
grDepthBufferFunction (settings.zmode_compare_less ? GR_CMP_LESS : GR_CMP_LEQUAL);
break;
case 2:
grDepthBiasLevel(settings.ucode == 7 ? -4 : 0);
grDepthBufferFunction (GR_CMP_LESS);
break;
case 3:
// will be set dynamically per polygon
//grDepthBiasLevel(-deltaZ);
// will be set dynamically per polygon
//grDepthBiasLevel(-deltaZ);
grDepthBufferFunction (GR_CMP_LEQUAL);
break;
}
}
}
else
else
{
grDepthBiasLevel(0);
grDepthBufferFunction (GR_CMP_ALWAYS);
grDepthBiasLevel(0);
grDepthBufferFunction (GR_CMP_ALWAYS);
}
if (rdp.flags & ZBUF_UPDATE)
@ -1960,7 +1960,7 @@ void update ()
}
else
{
grDepthBiasLevel(0);
grDepthBiasLevel(0);
grDepthBufferFunction (GR_CMP_ALWAYS);
grDepthMask (FXFALSE);
}