diff options
author | Joseph-Eugene Winzer | 2018-03-25 01:08:26 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-04-15 18:28:38 +0100 |
commit | 6ea629f9446f6f1b44eafa619449d96b2870bcc7 (patch) | |
tree | e298c877a2b8768e2fc3fbdf6cf9e9ebcc5efc3c /engines/supernova/screen.cpp | |
parent | 2ead17f09fb9c3c4af46cd86736fee654e6ad072 (diff) | |
download | scummvm-rg350-6ea629f9446f6f1b44eafa619449d96b2870bcc7.tar.gz scummvm-rg350-6ea629f9446f6f1b44eafa619449d96b2870bcc7.tar.bz2 scummvm-rg350-6ea629f9446f6f1b44eafa619449d96b2870bcc7.zip |
SUPERNOVA: Moves VGA Palette to screenstatic.cpp
Diffstat (limited to 'engines/supernova/screen.cpp')
-rw-r--r-- | engines/supernova/screen.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/supernova/screen.cpp b/engines/supernova/screen.cpp index 93f52f53ba..a57e3af6d3 100644 --- a/engines/supernova/screen.cpp +++ b/engines/supernova/screen.cpp @@ -23,6 +23,7 @@ #include "common/str.h" #include "common/system.h" #include "engines/util.h" +#include "graphics/cursorman.h" #include "graphics/palette.h" #include "graphics/surface.h" @@ -179,6 +180,11 @@ Screen::Screen(SupernovaEngine *vm, GameManager *gm, ResourceManager *resMan) , _textCursorX(0) , _textCursorY(0) , _messageShown(false) { + + CursorMan.replaceCursor(_resMan->getImage(ResourceManager::kCursorNormal), + 16, 16, 0, 0, kColorCursorTransparent); + CursorMan.replaceCursorPalette(initVGAPalette, 0, 16); + CursorMan.showMouse(true); } int Screen::getGuiBrightness() const { @@ -552,6 +558,11 @@ void Screen::renderBox(const GuiElement &guiElement) { renderBox(guiElement.left, guiElement.top, guiElement.width(), guiElement.height(), guiElement.getBackgroundColor()); } + +void Screen::initPalette() { + g_system->getPaletteManager()->setPalette(initVGAPalette, 0, 256); +} + void Screen::paletteBrightness() { byte palette[768]; |