aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/draw-manager.cpp18
-rw-r--r--engines/hdb/draw-manager.h3
2 files changed, 21 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index 5130557d18..5f8fe8159d 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -100,6 +100,24 @@ void DrawMan::fillScreen(uint32 color) {
// g_system->copyRectToScreen(_globalSurface.getBasePtr(0, 0), _globalSurface.pitch, 0, 0, _globalSurface.w, _globalSurface.h);
}
+void DrawMan::setFade(bool fadeIn, bool black, int steps) {
+ _fadeInfo.isFadeIn = fadeIn;
+ _fadeInfo.isBlack = black;
+
+ if (!steps) {
+ steps = 1;
+ }
+ _fadeInfo.speed = steps;
+
+ if (fadeIn) {
+ _fadeInfo.curStep = 0;
+ } else {
+ _fadeInfo.curStep = 255;
+ }
+
+ _fadeInfo.active = true;
+}
+
Tile *DrawMan::getTile(int index) {
if (index < 0 || index > _numTiles) {
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h
index 122f96ea55..3441964c0c 100644
--- a/engines/hdb/draw-manager.h
+++ b/engines/hdb/draw-manager.h
@@ -59,9 +59,12 @@ public:
bool init();
void fillScreen(uint32 color);
+ void setFade(bool fadeIn, bool black, int steps);
+
Tile *getTile(int index);
int getTileIndex(const char *name);
Picture *getPicture(const char *name);
+
int isSky(int skyIndex);
void setSky(int skyIndex);
void setup3DStars();