diff options
author | Matthew Stewart | 2018-07-17 04:10:48 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 52cfe602712ad39174379d56e1b45b7121fefda6 (patch) | |
tree | 32f9a3fca6f557c930afa3dd93bb93c1b306219a /engines/startrek/bitmap.h | |
parent | b9eca08db639299cfa13385db45b84b0b01cda28 (diff) | |
download | scummvm-rg350-52cfe602712ad39174379d56e1b45b7121fefda6.tar.gz scummvm-rg350-52cfe602712ad39174379d56e1b45b7121fefda6.tar.bz2 scummvm-rg350-52cfe602712ad39174379d56e1b45b7121fefda6.zip |
STARTREK: Get starfields working for the intro
Diffstat (limited to 'engines/startrek/bitmap.h')
-rw-r--r-- | engines/startrek/bitmap.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/startrek/bitmap.h b/engines/startrek/bitmap.h index b4c7a87115..8bc9cd2952 100644 --- a/engines/startrek/bitmap.h +++ b/engines/startrek/bitmap.h @@ -16,11 +16,13 @@ struct Bitmap { byte *pixels; Bitmap(Common::SharedPtr<FileStream> stream); + Bitmap(const Bitmap &bitmap); Bitmap(int w, int h); ~Bitmap(); protected: - Bitmap() : xoffset(0),yoffset(0),width(0),height(0),pixels(nullptr) {} + int32 pixelsArraySize; + Bitmap() : xoffset(0),yoffset(0),width(0),height(0),pixels(nullptr),pixelsArraySize(0) {} }; @@ -32,6 +34,15 @@ struct TextBitmap : Bitmap { TextBitmap(int w, int h); }; + +// StubBitmap is a bitmap without any actual pixel data. Used as a stub for the +// "starfield" sprite, which is always in draw mode 1 (invisible), so it never gets drawn; +// however, it does trigger refreshes on the background in that area, so the game can draw +// on the background layer manually. +struct StubBitmap : Bitmap { + StubBitmap(int w, int h); +}; + } #endif |