diff options
author | Nipun Garg | 2019-08-01 06:21:21 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:31 +0200 |
commit | 63f9cd97add918b03affaae516f6bc72de6b3826 (patch) | |
tree | f3eaa6178a2e925bb335dc056fb8f8aa21d5c4f3 | |
parent | a5ee5fbd18fad42de4e75dabdefa5cd818fe26c3 (diff) | |
download | scummvm-rg350-63f9cd97add918b03affaae516f6bc72de6b3826.tar.gz scummvm-rg350-63f9cd97add918b03affaae516f6bc72de6b3826.tar.bz2 scummvm-rg350-63f9cd97add918b03affaae516f6bc72de6b3826.zip |
HDB: Fix PPC crash due to _menuBackoutGfx
-rw-r--r-- | engines/hdb/menu.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp index 9785db1638..dd88c4aba8 100644 --- a/engines/hdb/menu.cpp +++ b/engines/hdb/menu.cpp @@ -100,8 +100,6 @@ Menu::Menu() { _assignY = 0; _backoutX = 0; _backoutY = 0; - _warpBackoutX = (g_hdb->_screenWidth - _menuBackoutGfx->_width); - _warpBackoutY = (g_hdb->_screenHeight - _menuBackoutGfx->_height); _warpX = 0; _warpY = 4; } else { @@ -431,8 +429,12 @@ void Menu::startMenu() { _quitGfx = g_hdb->_gfx->loadPic(MENU_QUIT); _resumeGfx = g_hdb->_gfx->loadPic(MENU_RESUME); _slotGfx = g_hdb->_gfx->loadPic(GAMEFILE_SLOT); - _menuBackoutGfx = g_hdb->_gfx->loadPic(MENU_BACK); _menuBackspaceGfx = g_hdb->_gfx->loadPic(MENU_BACKSPACE); + _menuBackoutGfx = g_hdb->_gfx->loadPic(MENU_BACK); + if (g_hdb->isPPC()) { + _warpBackoutX = (g_hdb->_screenWidth - _menuBackoutGfx->_width); + _warpBackoutY = (g_hdb->_screenHeight - _menuBackoutGfx->_height); + } _controlButtonGfx = g_hdb->_gfx->loadPic(MENU_CONTROLS); _controlsGfx = g_hdb->_gfx->loadPic(PIC_CONTROLSSCREEN); |