diff options
author | Johannes Schickel | 2013-08-02 23:42:16 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:32 +0200 |
commit | 578715b6f69bcd846e31ae4f207c759ee05022c8 (patch) | |
tree | 3c89a56879c5b6661945dfc05d01f20a99fb75b9 /engines | |
parent | 8b763977a38b366e0360a7fef861bd53f6aa6299 (diff) | |
download | scummvm-rg350-578715b6f69bcd846e31ae4f207c759ee05022c8.tar.gz scummvm-rg350-578715b6f69bcd846e31ae4f207c759ee05022c8.tar.bz2 scummvm-rg350-578715b6f69bcd846e31ae4f207c759ee05022c8.zip |
HUGO: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hugo/dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/dialogs.cpp b/engines/hugo/dialogs.cpp index 0f07d52aee..0fc4c87683 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]->pixels; - byte *dst = (byte *)_arrayBmp[i * 2 + 1]->pixels; + byte *src = (byte *)_arrayBmp[i * 2]->getBasePtr(0, 0); + byte *dst = (byte *)_arrayBmp[i * 2 + 1]->getBasePtr(0, 0); for (int j = 0; j < _arrayBmp[i * 2]->h; j++) { src = (byte *)_arrayBmp[i * 2]->getBasePtr(0, j); |