aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-08 23:12:03 +0530
committerEugene Sandulenko2019-09-03 17:16:46 +0200
commit852182be208740fac93bf9a26672368bd6373b73 (patch)
treee326dc3c97351cf6952d8f62354ba7eb8007081e /engines
parent833a3ea8e0a25185fa440b9ed680d8a6482b21fa (diff)
downloadscummvm-rg350-852182be208740fac93bf9a26672368bd6373b73.tar.gz
scummvm-rg350-852182be208740fac93bf9a26672368bd6373b73.tar.bz2
scummvm-rg350-852182be208740fac93bf9a26672368bd6373b73.zip
HDB: Fill out draw3DStars() and draw3DStarsLeft()
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/draw-manager.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index 3a95e44a07..896f9a16f9 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -192,6 +192,28 @@ void DrawMan::setup3DStarsLeft() {
}
}
+void DrawMan::draw3DStars() {
+ fillScreen(0);
+ for (int i = 0; i < kNum3DStars; i++) {
+ warning("STUB: draw3DStars: BlitMaskedPic needed");
+ _stars3D[i].y += (_stars3D[i].speed >> 5) + 1;
+ if (_stars3D[i].y > kScreenHeight) {
+ _stars3D[i].y = 0;
+ }
+ }
+}
+
+void DrawMan::draw3DStarsLeft() {
+ fillScreen(0);
+ for (int i = 0; i < kNum3DStars; i++) {
+ warning("STUB: draw3DStarsLeft: BlitMaskedPic needed");
+ _stars3DSlow[i].x -= _stars3DSlow[i].speed;
+ if (_stars3DSlow[i].x < kScreenWidth) {
+ _stars3DSlow[i].x = kScreenWidth - 1;
+ }
+ }
+}
+
Picture::~Picture() {
_surface.free();
}