diff options
author | Paul Gilbert | 2014-05-11 23:57:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-11 23:57:01 -0400 |
commit | 24243d57e6a3b6fc291b754339aa60e98a76592e (patch) | |
tree | 752a7c138f270a60f3944330410c401ad8e2db75 /engines/mads/nebular/dialogs_nebular.cpp | |
parent | a0fcbeeb4faa8a12c2b68a6887ebbdae2b356239 (diff) | |
download | scummvm-rg350-24243d57e6a3b6fc291b754339aa60e98a76592e.tar.gz scummvm-rg350-24243d57e6a3b6fc291b754339aa60e98a76592e.tar.bz2 scummvm-rg350-24243d57e6a3b6fc291b754339aa60e98a76592e.zip |
MADS: Fix dialog colors for PictureDialog class
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index 63b0edf2f1..df423f92a8 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -416,13 +416,23 @@ void PictureDialog::save() { SpriteAsset *asset = new SpriteAsset(_vm, setName, 0x8000); palette.setFullPalette(palette._mainPalette); - // Draw the inventory picture + // Get the inventory frame, and adjust the dialog position to allow for it MSprite *frame = asset->getFrame(0); _position.y = frame->h + 12; + // Draw the inventory picture frame->copyTo(&_vm->_screen, Common::Point(160 - frame->w / 2, 6), frame->getTransparencyIndex()); _vm->_screen.copyRectToScreen(_vm->_screen.getBounds()); + + // Adjust the dialog colours to use + TEXTDIALOG_CONTENT1 -= 10; + TEXTDIALOG_CONTENT2 -= 10; + TEXTDIALOG_EDGE -= 10; + TEXTDIALOG_BACKGROUND -= 10; + TEXTDIALOG_FC -= 10; + TEXTDIALOG_FD -= 10; + TEXTDIALOG_FE -= 10; } void PictureDialog::restore() { |