diff options
author | Martin Kiewitz | 2010-01-06 13:05:14 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-06 13:05:14 +0000 |
commit | 7d7d23ce2b8d7d2a4725303d893f273f366be18c (patch) | |
tree | 3f2a2f7cea3e9c839c56140cf4fefd4aefe5303c /engines/sci/graphics/font.cpp | |
parent | 86c1171b11edcfe28dab7a3ba282e8e75060b01c (diff) | |
download | scummvm-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.cpp | 4 |
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; |