2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 06:27:52 +00:00

CRasterFont const-correctness

This commit is contained in:
Jack Andersen
2016-03-16 10:53:38 -10:00
parent b710e135c5
commit b4514fc6a6
2 changed files with 8 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ class CRasterFont
s32 x90_ = 0;
char* fontName;
CGlyph* InternalGetGlyph(wchar_t chr)
const CGlyph* InternalGetGlyph(wchar_t chr) const
{
u32 i = 0;
for (; i < xc_glyphs.size(); ++i)
@@ -153,7 +153,7 @@ public:
void DrawString(const CDrawStringOptions& opts, int x, int y, int& xout, int& yout,
CTextRenderBuffer* renderBuf,
const wchar_t* str, int len) const;
CGlyph* GetGlyph(wchar_t chr)
const CGlyph* GetGlyph(wchar_t chr) const
{
return InternalGetGlyph(chr);
}