aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:39:49 +0200
committerJohannes Schickel2013-08-03 04:02:51 +0200
commit2578ec6e2f4f71730cd89ed8c88711aa4e377f28 (patch)
tree9787efe4ac25a46ae3e181e11371b8a9f16e35ff /engines
parentcad9148f851df68e030dfa858b5cdd56d3b2a4ac (diff)
downloadscummvm-rg350-2578ec6e2f4f71730cd89ed8c88711aa4e377f28.tar.gz
scummvm-rg350-2578ec6e2f4f71730cd89ed8c88711aa4e377f28.tar.bz2
scummvm-rg350-2578ec6e2f4f71730cd89ed8c88711aa4e377f28.zip
HUGO: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/dialogs.cpp b/engines/hugo/dialogs.cpp
index 0fc4c87683..5dcee3ae94 100644
--- a/engines/hugo/dialogs.cpp
+++ b/engines/hugo/dialogs.cpp
@@ -140,8 +140,8 @@ void TopMenu::loadBmpArr(Common::SeekableReadStream &in) {
_arrayBmp[i * 2] = bitmapSrc->convertTo(g_system->getOverlayFormat());
_arrayBmp[i * 2 + 1] = new Graphics::Surface();
_arrayBmp[i * 2 + 1]->create(_arrayBmp[i * 2]->w * 2, _arrayBmp[i * 2]->h * 2, g_system->getOverlayFormat());
- byte *src = (byte *)_arrayBmp[i * 2]->getBasePtr(0, 0);
- byte *dst = (byte *)_arrayBmp[i * 2 + 1]->getBasePtr(0, 0);
+ byte *src = (byte *)_arrayBmp[i * 2]->getPixels();
+ byte *dst = (byte *)_arrayBmp[i * 2 + 1]->getPixels();
for (int j = 0; j < _arrayBmp[i * 2]->h; j++) {
src = (byte *)_arrayBmp[i * 2]->getBasePtr(0, j);