aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/font.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-06 13:05:14 +0000
committerMartin Kiewitz2010-01-06 13:05:14 +0000
commit7d7d23ce2b8d7d2a4725303d893f273f366be18c (patch)
tree3f2a2f7cea3e9c839c56140cf4fefd4aefe5303c /engines/sci/graphics/font.cpp
parent86c1171b11edcfe28dab7a3ba282e8e75060b01c (diff)
downloadscummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.tar.gz
scummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.tar.bz2
scummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.zip
SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
Diffstat (limited to 'engines/sci/graphics/font.cpp')
-rw-r--r--engines/sci/graphics/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/font.cpp b/engines/sci/graphics/font.cpp
index 6b20899c26..b7ffec522b 100644
--- a/engines/sci/graphics/font.cpp
+++ b/engines/sci/graphics/font.cpp
@@ -79,8 +79,8 @@ byte *Font::getCharData(byte chr) {
}
void Font::draw(Screen *screen, int16 chr, int16 top, int16 left, byte color, bool greyedOutput) {
- int charWidth = MIN<int>(getCharWidth(chr), screen->_width - left);
- int charHeight = MIN<int>(getCharHeight(chr), 200 - top);
+ int charWidth = MIN<int>(getCharWidth(chr), screen->getWidth() - left);
+ int charHeight = MIN<int>(getCharHeight(chr), screen->getHeight() - top);
byte b = 0, mask = 0xFF;
int y = top;