diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2010-07-05 20:57:07 +0200 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2010-07-05 20:57:07 +0200 |
| commit | 575f72d978c700e4bedb46f4083bf1c24726640e (patch) | |
| tree | 4ff07848769ab4e308cbd27959181423904f4292 /src/engine | |
| parent | d302ba921e61177da9af1f85df58fe6f47ca5e95 (diff) | |
| download | zcatch-575f72d978c700e4bedb46f4083bf1c24726640e.tar.gz zcatch-575f72d978c700e4bedb46f4083bf1c24726640e.zip | |
fixed some compiler errors and warnings with clang
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/client/text.cpp | 7 | ||||
| -rw-r--r-- | src/engine/textrender.h | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index 8fa8efee..672fde60 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -67,8 +67,9 @@ struct CFontSizeData int m_CurrentCharacter; }; -struct CFont +class CFont { +public: char m_aFilename[128]; FT_Face m_FtFace; CFontSizeData m_aSizes[NUM_FONT_SIZES]; @@ -101,7 +102,7 @@ class CTextRender : public IEngineTextRender int m_FontTextureFormat; - struct CFont *m_pDefaultFont; + CFont *m_pDefaultFont; FT_Library m_FTLibrary; @@ -470,7 +471,7 @@ public: mem_free(pFont); } - virtual void SetDefaultFont(struct CFont *pFont) + virtual void SetDefaultFont(CFont *pFont) { dbg_msg("textrender", "default pFont set %p", pFont); m_pDefaultFont = pFont; diff --git a/src/engine/textrender.h b/src/engine/textrender.h index 7c7e036b..38dd5d86 100644 --- a/src/engine/textrender.h +++ b/src/engine/textrender.h @@ -23,7 +23,7 @@ public: float m_LineWidth; float m_X, m_Y; - struct CFont *m_pFont; + CFont *m_pFont; float m_FontSize; }; @@ -36,7 +36,7 @@ public: virtual CFont *LoadFont(const char *pFilename) = 0; virtual void DestroyFont(CFont *pFont) = 0; - virtual void SetDefaultFont(struct CFont *pFont) = 0; + virtual void SetDefaultFont(CFont *pFont) = 0; // virtual void TextEx(CTextCursor *pCursor, const char *pText, int Length) = 0; |