This commit is contained in:
parent
18d0247548
commit
7f6a1a06b9
20 changed files with 283 additions and 154 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue