Permalink
Browse files

SUPERNOVA: Adds renderImage overload for ImageId

  • Loading branch information...
Joefish committed Apr 16, 2018
1 parent 1e62c55 commit c20b960d80376653682e3eac0299f8a931cf66e3
Showing with 6 additions and 0 deletions.
  1. +4 −0 engines/supernova/supernova.cpp
  2. +2 −0 engines/supernova/supernova.h
@@ -247,6 +247,10 @@ void SupernovaEngine::renderImage(int section) {
_screen->renderImage(section);
}

void SupernovaEngine::renderImage(ImageId id, bool removeImage) {
_screen->renderImage(id, removeImage);
}

bool SupernovaEngine::setCurrentImage(int filenumber) {
return _screen->setCurrentImage(filenumber);
}
@@ -35,6 +35,7 @@
#include "supernova/msn_def.h"
#include "supernova/rooms.h"
#include "supernova/sound.h"
#include "supernova/imageid.h"

namespace Common {
class MemoryReadWriteStream;
@@ -102,6 +103,7 @@ class SupernovaEngine : public Engine {
void paletteFadeOut();
void paletteBrightness();
void renderImage(int section);
void renderImage(ImageId id, bool removeImage = false);
bool setCurrentImage(int filenumber);
void saveScreen(int x, int y, int width, int height);
void saveScreen(const GuiElement &guiElement);

0 comments on commit c20b960

Please sign in to comment.