mirror of https://github.com/AxioDL/metaforce.git
FontCache: Be explicit about athena's SeekOrigin type
Allows this code to still function properly if the enum is turned into an enum class.
This commit is contained in:
parent
6af485d949
commit
dbb44d20b9
|
@ -148,7 +148,7 @@ void FontAtlas::buildKernTable(FT_Face face) {
|
||||||
TT_KernHead kernHead;
|
TT_KernHead kernHead;
|
||||||
kernHead.read(r);
|
kernHead.read(r);
|
||||||
if (kernHead.coverage >> 8 != 0) {
|
if (kernHead.coverage >> 8 != 0) {
|
||||||
r.seek(kernHead.length - 6, athena::Current);
|
r.seek(kernHead.length - 6, athena::SeekOrigin::Current);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ static void WriteCompressed(athena::io::FileWriter& writer, const atUint8* data,
|
||||||
writer.writeUBytes(compBuf, ZLIB_BUF_SZ - z.avail_out);
|
writer.writeUBytes(compBuf, ZLIB_BUF_SZ - z.avail_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
writer.seek(adlerPos, athena::Begin);
|
writer.seek(adlerPos, athena::SeekOrigin::Begin);
|
||||||
writer.writeUint32Big(z.adler);
|
writer.writeUint32Big(z.adler);
|
||||||
|
|
||||||
deflateEnd(&z);
|
deflateEnd(&z);
|
||||||
|
|
Loading…
Reference in New Issue