diff options
Diffstat (limited to 'engines/lab/text.cpp')
-rw-r--r-- | engines/lab/text.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/text.cpp b/engines/lab/text.cpp index 1c1cacdac3..f784c2126d 100644 --- a/engines/lab/text.cpp +++ b/engines/lab/text.cpp @@ -78,10 +78,10 @@ void text(TextFont *tf, uint16 x, uint16 y, uint16 color, const char *text, uint int32 templeft, LeftInSegment; uint16 bwidth, mask, curpage, data; - VGATop = g_lab->getCurrentDrawingBuffer(); + VGATop = g_lab->_graphics->getCurrentDrawingBuffer(); for (uint16 i = 0; i < numchars; i++) { - RealOffset = (g_lab->_screenWidth * y) + x; + RealOffset = (g_lab->_graphics->_screenWidth * y) + x; curpage = RealOffset / g_lab->_graphics->_screenBytesPerPage; SegmentOffset = RealOffset - (curpage * g_lab->_graphics->_screenBytesPerPage); LeftInSegment = g_lab->_graphics->_screenBytesPerPage - SegmentOffset; @@ -137,8 +137,8 @@ void text(TextFont *tf, uint16 x, uint16 y, uint16 color, const char *text, uint } } - VGATempLine += g_lab->_screenWidth; - LeftInSegment -= g_lab->_screenWidth; + VGATempLine += g_lab->_graphics->_screenWidth; + LeftInSegment -= g_lab->_graphics->_screenWidth; if (LeftInSegment <= 0) { curpage++; |