mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 09:07:43 +00:00
Function-scope statics aren't as efficient as file-scope ones
This commit is contained in:
@@ -352,27 +352,28 @@ static const uint8_t* DecodePaletteSPLT(png_structrp png, png_infop info,
|
||||
return data;
|
||||
}
|
||||
|
||||
static const png_color C4Colors[] =
|
||||
{
|
||||
{0,0,0},
|
||||
{155,0,0},
|
||||
{0,155,0},
|
||||
{0,0,155},
|
||||
{155,155,0},
|
||||
{155,0,155},
|
||||
{0,155,155},
|
||||
{155,155,155},
|
||||
{55,55,55},
|
||||
{255,0,0},
|
||||
{0,255,0},
|
||||
{0,0,255},
|
||||
{255,255,0},
|
||||
{255,0,255},
|
||||
{0,255,255},
|
||||
{255,255,255}
|
||||
};
|
||||
|
||||
static void C4Palette(png_structrp png, png_infop info)
|
||||
{
|
||||
static const png_color C4Colors[] =
|
||||
{
|
||||
{0,0,0},
|
||||
{155,0,0},
|
||||
{0,155,0},
|
||||
{0,0,155},
|
||||
{155,155,0},
|
||||
{155,0,155},
|
||||
{0,155,155},
|
||||
{155,155,155},
|
||||
{55,55,55},
|
||||
{255,0,0},
|
||||
{0,255,0},
|
||||
{0,0,255},
|
||||
{255,255,0},
|
||||
{255,0,255},
|
||||
{0,255,255},
|
||||
{255,255,255}
|
||||
};
|
||||
png_set_PLTE(png, info, C4Colors, 16);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user