diff options
author | Eugene Sandulenko | 2019-11-06 13:59:00 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | 98216d97388e2504003ac7ada783ca5918d60bb1 (patch) | |
tree | d429b829405036d05ba8ad68652b31dbb50d1969 | |
parent | 651e7ef9f0f7c49064b886095f31977f141f21e6 (diff) | |
download | scummvm-rg350-98216d97388e2504003ac7ada783ca5918d60bb1.tar.gz scummvm-rg350-98216d97388e2504003ac7ada783ca5918d60bb1.tar.bz2 scummvm-rg350-98216d97388e2504003ac7ada783ca5918d60bb1.zip |
GRIFFON: Fixed rendering of config menu
-rw-r--r-- | engines/griffon/dialogs.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/griffon/dialogs.cpp b/engines/griffon/dialogs.cpp index 6f02a31dd2..25aada0af8 100644 --- a/engines/griffon/dialogs.cpp +++ b/engines/griffon/dialogs.cpp @@ -251,6 +251,8 @@ void GriffonEngine::configMenu() { int ticks1 = _ticks; + _cloudImg->setAlpha(128, true); + do { _videoBuffer->fillRect(Common::Rect(0, 0, _videoBuffer->w, _videoBuffer->h), 0); @@ -259,18 +261,14 @@ void GriffonEngine::configMenu() { rcDest.setWidth(320); rcDest.setHeight(240); - _cloudImg->setAlpha(128, true); _cloudImg->blit(*_videoBuffer, 0, 0, Graphics::FLIP_NONE, &rcDest); - _cloudImg->setAlpha(64, true); rcDest.left = 256; rcDest.top = 192; rcDest.setWidth(320); rcDest.setHeight(240); - _cloudImg->setAlpha(128, true); _cloudImg->blit(*_videoBuffer, 0, 0, Graphics::FLIP_NONE, &rcDest); - _cloudImg->setAlpha(64, true); configwindow->blit(*_videoBuffer); @@ -327,7 +325,8 @@ void GriffonEngine::configMenu() { } _videoBuffer->setAlpha((int)yy); - g_system->copyRectToScreen(_videoBuffer->getPixels(), _videoBuffer->pitch, 0, 0, _videoBuffer->w, _videoBuffer->h); + _videoBuffer->blit(*_videoBuffer2); + g_system->copyRectToScreen(_videoBuffer2->getPixels(), _videoBuffer2->pitch, 0, 0, _videoBuffer2->w, _videoBuffer2->h); _ticksPassed = _ticks; _ticks = g_system->getMillis(); @@ -450,8 +449,6 @@ void GriffonEngine::configMenu() { configwindow->free(); _itemTicks = _ticks + 210; - - _cloudImg->setAlpha(64, true); } void GriffonEngine::saveLoadNew() { |