diff options
Diffstat (limited to 'engines/wintermute/Base/font/BFontTT.h')
-rw-r--r-- | engines/wintermute/Base/font/BFontTT.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wintermute/Base/font/BFontTT.h b/engines/wintermute/Base/font/BFontTT.h index 1ee9f1d105..058fc28755 100644 --- a/engines/wintermute/Base/font/BFontTT.h +++ b/engines/wintermute/Base/font/BFontTT.h @@ -80,7 +80,7 @@ public: _color = 0x00000000;
}
- ERRORCODE persist(CBPersistMgr *persistMgr) {
+ bool persist(CBPersistMgr *persistMgr) {
persistMgr->transfer(TMEMBER(_offsetX));
persistMgr->transfer(TMEMBER(_offsetY));
persistMgr->transfer(TMEMBER(_color));
@@ -123,8 +123,8 @@ public: virtual void drawText(byte *text, int x, int y, int width, TTextAlign align = TAL_LEFT, int max_height = -1, int maxLength = -1);
virtual int getLetterHeight();
- ERRORCODE loadBuffer(byte *buffer);
- ERRORCODE loadFile(const char *filename);
+ bool loadBuffer(byte *buffer);
+ bool loadFile(const char *filename);
float getLineHeight() const {
return _lineHeight;
@@ -134,7 +134,7 @@ public: void initLoop();
private:
- ERRORCODE parseLayer(CBTTFontLayer *layer, byte *buffer);
+ bool parseLayer(CBTTFontLayer *layer, byte *buffer);
void wrapText(const WideString &text, int maxWidth, int maxHeight, TextLineList &lines);
void measureText(const WideString &text, int maxWidth, int maxHeight, int &textWidth, int &textHeight);
@@ -145,7 +145,7 @@ private: CBCachedTTFontText *_cachedTexts[NUM_CACHED_TEXTS];
- ERRORCODE initFont();
+ bool initFont();
Graphics::Font *_deletableFont;
const Graphics::Font *_font;
|