aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/charset-fontdata.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:36:55 +0200
committerJohannes Schickel2013-08-03 04:02:50 +0200
commit01daff0f1d5f222e7b892f3068e7ef6880b40346 (patch)
treeeaa8d1fe75705861058dcd27ddf9931773879003 /engines/agos/charset-fontdata.cpp
parent0a1cbac76ac66876d187d2951c671a86a4812a59 (diff)
downloadscummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.tar.gz
scummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.tar.bz2
scummvm-rg350-01daff0f1d5f222e7b892f3068e7ef6880b40346.zip
AGOS: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/agos/charset-fontdata.cpp')
-rw-r--r--engines/agos/charset-fontdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/charset-fontdata.cpp b/engines/agos/charset-fontdata.cpp
index b67b307606..b6b90eefcc 100644
--- a/engines/agos/charset-fontdata.cpp
+++ b/engines/agos/charset-fontdata.cpp
@@ -2924,7 +2924,7 @@ void AGOSEngine::windowDrawChar(WindowBlock *window, uint x, uint y, byte chr) {
Graphics::Surface *screen = _system->lockScreen();
if (getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) {
- dst = (byte *)screen->getBasePtr(0, 0);
+ dst = (byte *)screen->getPixels();
dstPitch = screen->pitch;
h = 8;
w = 6;
@@ -2961,7 +2961,7 @@ void AGOSEngine::windowDrawChar(WindowBlock *window, uint x, uint y, byte chr) {
error("windowDrawChar: Unknown language %d", _language);
}
} else if (getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) {
- dst = (byte *)screen->getBasePtr(0, 0);
+ dst = (byte *)screen->getPixels();
dstPitch = screen->pitch;
h = 8;
w = 6;
@@ -2986,14 +2986,14 @@ void AGOSEngine::windowDrawChar(WindowBlock *window, uint x, uint y, byte chr) {
error("windowDrawChar: Unknown language %d", _language);
}
} else if (getGameType() == GType_ELVIRA1) {
- dst = (byte *)screen->getBasePtr(0, 0);
+ dst = (byte *)screen->getPixels();
dstPitch = screen->pitch;
h = 8;
w = 6;
src = english_elvira1Font + (chr - 32) * 8;
} else {
- dst = (byte *)screen->getBasePtr(0, 0);
+ dst = (byte *)screen->getPixels();
dstPitch = screen->pitch;
h = 8;
w = 8;