From 7d7d23ce2b8d7d2a4725303d893f273f366be18c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 6 Jan 2010 13:05:14 +0000 Subject: SCI: making most of the variables in screen class private (some of it was needed for old gui) svn-id: r47075 --- engines/sci/graphics/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/graphics/font.cpp') 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(getCharWidth(chr), screen->_width - left); - int charHeight = MIN(getCharHeight(chr), 200 - top); + int charWidth = MIN(getCharWidth(chr), screen->getWidth() - left); + int charHeight = MIN(getCharHeight(chr), screen->getHeight() - top); byte b = 0, mask = 0xFF; int y = top; -- cgit v1.2.3