From 852182be208740fac93bf9a26672368bd6373b73 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sat, 8 Jun 2019 23:12:03 +0530 Subject: HDB: Fill out draw3DStars() and draw3DStarsLeft() --- engines/hdb/draw-manager.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'engines/hdb') 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(); } -- cgit v1.2.3