diff options
author | Eugene Sandulenko | 2019-08-16 12:05:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:34 +0200 |
commit | d7b1e9d38e493337146a231d7a6c0b3856708068 (patch) | |
tree | c78032da310cbf5634f95b56687ebd9abd32e28b | |
parent | 390152b0b87416ddf17e2a7b63bbcbf4daa21b84 (diff) | |
download | scummvm-rg350-d7b1e9d38e493337146a231d7a6c0b3856708068.tar.gz scummvm-rg350-d7b1e9d38e493337146a231d7a6c0b3856708068.tar.bz2 scummvm-rg350-d7b1e9d38e493337146a231d7a6c0b3856708068.zip |
HDB: Implement quit screenshot differences for the PPC demos
-rw-r--r-- | engines/hdb/menu.cpp | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp index 9ed7291140..3dc7d2fe36 100644 --- a/engines/hdb/menu.cpp +++ b/engines/hdb/menu.cpp @@ -437,10 +437,18 @@ void Menu::startMenu() { _controlsGfx = g_hdb->_gfx->loadPic(PIC_CONTROLSSCREEN); if (g_hdb->isDemo()) { - _screenshots1gfx = g_hdb->_gfx->loadPic(PIC_DEMOSCREEN); - _screenshots1agfx = g_hdb->_gfx->loadPic(PIC_DEMOSCREEN2); - _screenshots2gfx = g_hdb->_gfx->loadPic(PIC_DEMO_BUY); - _demoPlaqueGfx = g_hdb->_gfx->loadPic(PIC_DEMO); + + if (!g_hdb->isPPC()) { + _screenshots1gfx = g_hdb->_gfx->loadPic(PIC_DEMOSCREEN); + _screenshots1agfx = g_hdb->_gfx->loadPic(PIC_DEMOSCREEN2); + _screenshots2gfx = g_hdb->_gfx->loadPic(PIC_DEMO_BUY); + _demoPlaqueGfx = g_hdb->_gfx->loadPic(PIC_DEMO); + } else { + _screenshots1agfx = g_hdb->_gfx->loadPic("pic_demoscreenshots"); + _screenshots1gfx = g_hdb->_gfx->loadPic("pic_demoscreenshots2"); + _screenshots2gfx = NULL; + _demoPlaqueGfx = NULL; + } } _vortexian[0] = g_hdb->_gfx->loadTile(GROUP_ENT_VORTEXIAN_STANDDOWN"01"); @@ -535,12 +543,13 @@ void Menu::drawMenu() { if (_menuActive) { drawRocketAndSelections(); - // draw version # - if (_versionGfx) + if (!g_hdb->isPPC()) { + // draw version # _versionGfx->drawMasked(g_hdb->_screenWidth - 6 * 8, g_hdb->_screenHeight - 8); - if (g_hdb->isDemo() && _demoPlaqueGfx) { - _demoPlaqueGfx->drawMasked(g_hdb->_screenWidth / 2 - _demoPlaqueGfx->_width / 2, 2); + if (g_hdb->isDemo()) { + _demoPlaqueGfx->drawMasked(g_hdb->_screenWidth / 2 - _demoPlaqueGfx->_width / 2, 2); + } } // @@ -847,11 +856,13 @@ void Menu::drawMenu() { if (!_quitScreen) _quitScreen = g_hdb->_gfx->loadPic(PIC_QUITSCREEN); _quitScreen->drawMasked(_quitX, _quitY); - } else if (_quitActive == 2) { // XXXX - _screenshots1gfx->drawMasked(_quitX, _quitY); - _screenshots2gfx->drawMasked(_quitX, g_hdb->_screenHeight - _screenshots2gfx->_height); } else if (_quitActive == 1) { _screenshots1agfx->drawMasked(_quitX, _quitY); + } else if (_quitActive == 2) { // XXXX + _screenshots1gfx->drawMasked(_quitX, _quitY); + + if (!g_hdb->isPPC()) + _screenshots2gfx->drawMasked(_quitX, g_hdb->_screenHeight - _screenshots2gfx->_height); } } } |