diff options
author | Johannes Schickel | 2013-08-03 01:01:09 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:34 +0200 |
commit | 76aa360112e8dd6a741d9cbab5db744e91efcc27 (patch) | |
tree | cb74ddaeb711ada809a614a48ca628f01138700e /engines | |
parent | 509f96dff3e41fe88e78997f8e1617b0067f85cd (diff) | |
download | scummvm-rg350-76aa360112e8dd6a741d9cbab5db744e91efcc27.tar.gz scummvm-rg350-76aa360112e8dd6a741d9cbab5db744e91efcc27.tar.bz2 scummvm-rg350-76aa360112e8dd6a741d9cbab5db744e91efcc27.zip |
TOLTECS: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toltecs/menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp index b52d7dad82..d2b3d5a163 100644 --- a/engines/toltecs/menu.cpp +++ b/engines/toltecs/menu.cpp @@ -69,7 +69,7 @@ int MenuSystem::run(MenuID menuId) { _vm->_screen->blastSprite(0x140 + _vm->_cameraX, 0x175 + _vm->_cameraY, 0, 1, 0x4000); shadeRect(60, 39, 520, 247, 225, 229); - memcpy(_background->pixels, _vm->_screen->_frontScreen, 640 * 400); + memcpy(_background->getBasePtr(0, 0), _vm->_screen->_frontScreen, 640 * 400); while (_running) { update(); @@ -229,7 +229,7 @@ void MenuSystem::initMenu(MenuID menuID) { _items.clear(); - memcpy(_vm->_screen->_frontScreen, _background->pixels, 640 * 400); + memcpy(_vm->_screen->_frontScreen, _background->getBasePtr(0, 0), 640 * 400); switch (menuID) { case kMenuIdMain: |