This commit is contained in:
Daveo 2000-12-14 16:38:34 +00:00
parent 18d0247548
commit 7f6a1a06b9
20 changed files with 283 additions and 154 deletions

View file

@ -663,6 +663,28 @@ void Frame::MakeRGBA(u8 * Dest,bool ZeroIsTrans)
}
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void Frame::MakeRGB(u8 * Dest)
{
if (Buffa)
{
int Area;
Area=Width*Height;
for (int f=0;f<Area;f++)
{
Dest[f*3+0]=MyPal[Buffa[f]].GetR();
Dest[f*3+1]=MyPal[Buffa[f]].GetG();
Dest[f*3+2]=MyPal[Buffa[f]].GetB();
}
}
}
/*----------------------------------------------------------------------
Function:
Purpose: