aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/font.h
diff options
context:
space:
mode:
authorRobert Špalek2009-09-25 17:33:00 +0000
committerRobert Špalek2009-09-25 17:33:00 +0000
commit431780297e6db1f97733689a6c1485a624a61dc9 (patch)
treea391a26a5b0e466bb8f49a7285b4ff8ea521c216 /engines/draci/font.h
parent180b3f1247e44c7167ca9578261b570357c11b7a (diff)
downloadscummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.tar.gz
scummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.tar.bz2
scummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.zip
Added some more const's to the interface of Dragon History
svn-id: r44362
Diffstat (limited to 'engines/draci/font.h')
-rw-r--r--engines/draci/font.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/draci/font.h b/engines/draci/font.h
index 5258108add..de2fe5d3da 100644
--- a/engines/draci/font.h
+++ b/engines/draci/font.h
@@ -61,19 +61,17 @@ public:
uint8 getFontHeight() const { return _fontHeight; };
uint8 getMaxCharWidth() const { return _maxCharWidth; };
uint8 getCharWidth(byte chr) const;
- void drawChar(Surface *dst, uint8 chr, int tx, int ty) const;
+ void drawChar(Surface *dst, uint8 chr, int tx, int ty, int with_colour) const;
- void drawString(Surface *dst, const byte *str, uint len, int x, int y,
+ void drawString(Surface *dst, const byte *str, uint len, int x, int y, int with_colour,
int spacing, bool markDirty = true) const;
void drawString(Surface *dst, const Common::String &str,
- int x, int y, int spacing, bool markDirty = true) const;
+ int x, int y, int with_colour, int spacing, bool markDirty = true) const;
uint getStringWidth(const Common::String &str, int spacing = 0) const;
uint getStringHeight(const Common::String &str) const;
uint getLineWidth(const Common::String &str, uint startIndex, int spacing = 0) const;
- void setColour(uint8 colour);
-
private:
uint8 _fontHeight;
uint8 _maxCharWidth;
@@ -93,9 +91,6 @@ private:
*/
static const unsigned int kCharIndexOffset = 32;
- /** The varying font colour; initially set to kFontColour1 */
- uint8 _currentFontColour;
-
/** Internal function for freeing fonts when destructing/loading another */
void freeFont();
};