mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 21:55:52 +00:00
fixed annoyances
This commit is contained in:
parent
46916d6fac
commit
90c99910b6
@ -218,10 +218,7 @@ static bool ReadDecompressed(Athena::io::FileReader& reader, atUint8* data, size
|
|||||||
}
|
}
|
||||||
|
|
||||||
inflateEnd(&z);
|
inflateEnd(&z);
|
||||||
|
return adler32 == z.adler;
|
||||||
if (adler32 != z.adler)
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
||||||
@ -300,7 +297,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
size_t count = TEXMAP_DIM * totalHeight;
|
size_t count = TEXMAP_DIM * totalHeight;
|
||||||
texmap.reset(new RgbaPixel[TEXMAP_DIM * totalHeight]);
|
texmap.reset(new RgbaPixel[count]);
|
||||||
bufSz = count * sizeof(RgbaPixel);
|
bufSz = count * sizeof(RgbaPixel);
|
||||||
memset(texmap.get(), 0, bufSz);
|
memset(texmap.get(), 0, bufSz);
|
||||||
}
|
}
|
||||||
@ -375,7 +372,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
size_t count = TEXMAP_DIM * totalHeight;
|
size_t count = TEXMAP_DIM * totalHeight;
|
||||||
texmap.reset(new GreyPixel[TEXMAP_DIM * totalHeight]);
|
texmap.reset(new GreyPixel[count]);
|
||||||
bufSz = count * sizeof(GreyPixel);
|
bufSz = count * sizeof(GreyPixel);
|
||||||
memset(texmap.get(), 0, bufSz);
|
memset(texmap.get(), 0, bufSz);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user