Permalink
Browse files

SUPERNOVA: Uses setCurrentImage in renderImage

Although renderImage for ImageId doesn't use _currentImage, it needs to
be set for compatibility with the section based renderImage function.
The functionality doesn't change with this commit, except that the
palette brightness gets updated if the image is in a different file.
  • Loading branch information...
Joefish committed Apr 23, 2018
1 parent 536630a commit 641a4307f230152931adb49940c5c72cc839f0cb
Showing with 2 additions and 4 deletions.
  1. +2 −4 engines/supernova/screen.cpp
@@ -375,10 +375,8 @@ void Screen::renderImage(ImageId id, bool removeImage) {
ImageInfo info = imageInfo[id];
const MSNImage *image = _resMan->getImage(info.filenumber);

if (_currentImage != image) {
_currentImage = image;
_vm->_system->getPaletteManager()->setPalette(image->getPalette(), 16, 239);
}
if (_currentImage != image)
setCurrentImage(info.filenumber);

do {
renderImageSection(image, info.section, removeImage);

0 comments on commit 641a430

Please sign in to comment.