aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/font.cpp')
-rw-r--r--engines/teenagent/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/font.cpp b/engines/teenagent/font.cpp
index efc107f6db..9d85328f20 100644
--- a/engines/teenagent/font.cpp
+++ b/engines/teenagent/font.cpp
@@ -65,7 +65,7 @@ uint Font::render(Graphics::Surface *surface, int x, int y, char c, byte color)
byte *glyph = _data + READ_LE_UINT16(_data + idx * 2);
int h = glyph[0], w = glyph[1];
- if (surface == NULL || surface->getBasePtr(0, 0) == NULL || y + h <= 0 || y >= kScreenHeight || x + w <= 0 || x >= kScreenWidth)
+ if (surface == NULL || surface->getPixels() == NULL || y + h <= 0 || y >= kScreenHeight || x + w <= 0 || x >= kScreenWidth)
return w - _widthPack;
int i0 = 0, j0 = 0;