mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Merge branch 'fix-blendtables' into 'next'
Fix blend tables generation See merge request STJr/SRB2!1458
This commit is contained in:
commit
315582bd6c
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ static void BlendTab_Modulative(UINT8 *table)
|
|||
|
||||
static INT32 BlendTab_Count[NUMBLENDMAPS] =
|
||||
{
|
||||
NUMTRANSTABLES, // blendtab_add
|
||||
NUMTRANSTABLES+1, // blendtab_add
|
||||
NUMTRANSTABLES+1, // blendtab_subtract
|
||||
NUMTRANSTABLES+1, // blendtab_reversesubtract
|
||||
1 // blendtab_modulate
|
||||
|
@ -294,7 +294,7 @@ static INT32 BlendTab_FromStyle[] =
|
|||
static void BlendTab_GenerateMaps(INT32 tab, INT32 style, void (*genfunc)(UINT8 *, int, UINT8))
|
||||
{
|
||||
INT32 i = 0, num = BlendTab_Count[tab];
|
||||
const float amtmul = (256.0f / (float)(NUMTRANSTABLES));
|
||||
const float amtmul = (256.0f / (float)(NUMTRANSTABLES + 1));
|
||||
for (; i < num; i++)
|
||||
{
|
||||
const size_t offs = (0x10000 * i);
|
||||
|
|
Loading…
Reference in a new issue