diff options
author | Paul Gilbert | 2013-05-31 21:03:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-05-31 21:03:16 -0400 |
commit | 4279eedceb261e3c179343b15d2e6841dc0bd43b (patch) | |
tree | cb6128c093a6052ee108a27131a967bd2990fb17 /engines/voyeur/files.h | |
parent | 43d31cc33424c053e8f42c7fcb5f18b422ef1ef9 (diff) | |
download | scummvm-rg350-4279eedceb261e3c179343b15d2e6841dc0bd43b.tar.gz scummvm-rg350-4279eedceb261e3c179343b15d2e6841dc0bd43b.tar.bz2 scummvm-rg350-4279eedceb261e3c179343b15d2e6841dc0bd43b.zip |
VOYEUR: Cleanup of sDrawPic parameter usage and viewport initialisation
Diffstat (limited to 'engines/voyeur/files.h')
-rw-r--r-- | engines/voyeur/files.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/voyeur/files.h b/engines/voyeur/files.h index 57fbb0f880..d75c88ae0b 100644 --- a/engines/voyeur/files.h +++ b/engines/voyeur/files.h @@ -192,9 +192,13 @@ public: bool openBoltLib(const Common::String &filename, BoltFile *&boltFile); }; -class PictureResource { +class DisplayResource { public: uint16 _flags; +}; + +class PictureResource: public DisplayResource { +public: byte _select; byte _pick; byte _onOff; @@ -204,13 +208,6 @@ public: uint _planeSize; byte *_imgData; - - // TODO: Investigate further just why/how pictuers are chained - PictureResource *_secondPicture; - // TODO: Figure out if the following data is part of all pictures, or if - // only for certain types (when flags & 0x8000 != 0) - Common::Rect _bounds2; - Field86MethodPtr _field86; public: PictureResource(BoltFilesState &state, const byte *src); virtual ~PictureResource(); @@ -218,14 +215,13 @@ public: typedef void (ViewPortResource::*ViewPortMethodPtr)(); -class ViewPortResource { +class ViewPortResource: public DisplayResource { private: BoltFilesState &_state; private: void setupViewPort(PictureResource *page, Common::Rect *clipRect, ViewPortSetupPtr setupFn, ViewPortAddPtr addFn, ViewPortRestorePtr restoreFn); public: - int _flags; ViewPortResource *_next; Common::Rect _bounds; int _field18; |