From dbb44d20b9a383a6e1aa0cf843d868113f31bd7a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Sep 2019 16:38:25 -0400 Subject: [PATCH] FontCache: Be explicit about athena's SeekOrigin type Allows this code to still function properly if the enum is turned into an enum class. --- specter/lib/FontCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specter/lib/FontCache.cpp b/specter/lib/FontCache.cpp index e681b6d27..ca0ea97cd 100644 --- a/specter/lib/FontCache.cpp +++ b/specter/lib/FontCache.cpp @@ -148,7 +148,7 @@ void FontAtlas::buildKernTable(FT_Face face) { TT_KernHead kernHead; kernHead.read(r); if (kernHead.coverage >> 8 != 0) { - r.seek(kernHead.length - 6, athena::Current); + r.seek(kernHead.length - 6, athena::SeekOrigin::Current); 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.seek(adlerPos, athena::Begin); + writer.seek(adlerPos, athena::SeekOrigin::Begin); writer.writeUint32Big(z.adler); deflateEnd(&z);