- removed the unused BaseBlend* variables and the testblend CCMD.

When this was still working it was software rendering only anyway so no real loss here.
This commit is contained in:
Christoph Oelckers 2022-11-08 11:46:13 +01:00
parent dab61709f8
commit 706d465781
4 changed files with 0 additions and 54 deletions

View file

@ -84,35 +84,3 @@ void InitPalette ()
}
CCMD (testblend)
{
FString colorstring;
int color;
float amt;
if (argv.argc() < 3)
{
Printf ("testblend <color> <amount>\n");
}
else
{
if ( !(colorstring = V_GetColorStringByName (argv[1])).IsEmpty() )
{
color = V_GetColorFromString (colorstring);
}
else
{
color = V_GetColorFromString (argv[1]);
}
amt = (float)atof (argv[2]);
if (amt > 1.0f)
amt = 1.0f;
else if (amt < 0.0f)
amt = 0.0f;
BaseBlendR = RPART(color);
BaseBlendG = GPART(color);
BaseBlendB = BPART(color);
BaseBlendA = amt;
}
}

View file

@ -1058,18 +1058,6 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
if (R_OldBlend != newblend)
{
R_OldBlend = newblend;
if (APART(newblend))
{
BaseBlendR = RPART(newblend);
BaseBlendG = GPART(newblend);
BaseBlendB = BPART(newblend);
BaseBlendA = APART(newblend) / 255.f;
}
else
{
BaseBlendR = BaseBlendG = BaseBlendB = 0;
BaseBlendA = 0.f;
}
}
validcount++;

View file

@ -39,12 +39,6 @@
#include "d_main.h"
#include "v_draw.h"
// [RH] Base blending values (for e.g. underwater)
int BaseBlendR, BaseBlendG, BaseBlendB;
float BaseBlendA;
class FSWPaletteTexture : public FImageSource
{
public:

View file

@ -5,8 +5,4 @@ struct event_t;
bool ST_Responder(event_t* ev);
// [RH] Base blending values (for e.g. underwater)
extern int BaseBlendR, BaseBlendG, BaseBlendB;
extern float BaseBlendA;
#endif