diff options
author | Einar Johan Trøan Sømåen | 2012-08-31 14:01:18 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-31 14:01:18 +0200 |
commit | 2039ea6b8df36c960ff25ae56930357d40e95d1d (patch) | |
tree | f4e6f5737f6ca3880584a47554c574f11035ee98 /engines/wintermute/base/font/base_font_bitmap.cpp | |
parent | 16b27090b1c7dc11cdc199b1a98c0f2973db5f45 (diff) | |
download | scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.gz scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.bz2 scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.zip |
WINTERMUTE: Fix g++ warnings listed by LordHoto
Diffstat (limited to 'engines/wintermute/base/font/base_font_bitmap.cpp')
-rw-r--r-- | engines/wintermute/base/font/base_font_bitmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/font/base_font_bitmap.cpp b/engines/wintermute/base/font/base_font_bitmap.cpp index 0913ac9b53..ff1207b31f 100644 --- a/engines/wintermute/base/font/base_font_bitmap.cpp +++ b/engines/wintermute/base/font/base_font_bitmap.cpp @@ -69,7 +69,7 @@ BaseFontBitmap::~BaseFontBitmap() { //////////////////////////////////////////////////////////////////////
-void BaseFontBitmap::drawText(byte *text, int x, int y, int width, TTextAlign align, int maxHeight, int maxLength) {
+void BaseFontBitmap::drawText(const byte *text, int x, int y, int width, TTextAlign align, int maxHeight, int maxLength) {
textHeightDraw(text, x, y, width, align, true, maxHeight, maxLength);
}
@@ -106,7 +106,7 @@ int BaseFontBitmap::getTextWidth(byte *text, int maxLength) { //////////////////////////////////////////////////////////////////////
-int BaseFontBitmap::textHeightDraw(byte *text, int x, int y, int width, TTextAlign align, bool draw, int maxHeight, int maxLength) {
+int BaseFontBitmap::textHeightDraw(const byte *text, int x, int y, int width, TTextAlign align, bool draw, int maxHeight, int maxLength) {
if (maxLength == 0) {
return 0;
}
|