diff options
author | Paul Gilbert | 2013-05-28 22:39:32 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-05-28 22:39:32 -0400 |
commit | d770907c33c8991fa683500686ff3af3a09639fc (patch) | |
tree | 39268a1d9533b15608d74b5eaec6ad8afc368f38 /engines/voyeur/files.h | |
parent | 83524863d744c71eb5083fc4f9ce32d576f7810d (diff) | |
download | scummvm-rg350-d770907c33c8991fa683500686ff3af3a09639fc.tar.gz scummvm-rg350-d770907c33c8991fa683500686ff3af3a09639fc.tar.bz2 scummvm-rg350-d770907c33c8991fa683500686ff3af3a09639fc.zip |
VOYEUR: Starting on viewport activation, and extra bolt entry guards
Diffstat (limited to 'engines/voyeur/files.h')
-rw-r--r-- | engines/voyeur/files.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/voyeur/files.h b/engines/voyeur/files.h index eb0c313c3b..1bc9a9d8a3 100644 --- a/engines/voyeur/files.h +++ b/engines/voyeur/files.h @@ -126,6 +126,7 @@ public: ~BoltFile(); bool getBoltGroup(uint32 id); + BoltEntry &getBoltEntry(uint32 id); byte *memberAddr(uint32 id); byte *memberAddrOffset(uint32 id); void resolveIt(uint32 id, byte **p); @@ -174,6 +175,7 @@ public: virtual ~BoltEntry(); void load(); + bool hasResource() const; }; class FilesManager { @@ -207,9 +209,25 @@ public: virtual ~PictureResource(); }; +typedef void (ViewPortResource::*ViewPortMethodPtr)(); + class ViewPortResource { +private: + BoltFilesState &_state; + + void setupMCGASaveRect(); + void restoreMCGASaveRect(); + void addRectOptSaveRect(); +private: + void setupViewPort(int v, ViewPortMethodPtr setupFn, ViewPortMethodPtr addRectFn, + ViewPortMethodPtr restoreFn, byte *page); public: byte *_field2; + int _fieldC; + int _fieldE; + int _field10; + int _field12; + int _field18; byte *_field20; byte *_field24; byte *_field28; @@ -218,6 +236,10 @@ public: byte *_field34; byte *_field38; byte *_field3C; + int _field46; + int _field48; + int _field4A; + int _field4C; byte *_field7A; BoltMethodPtr _fn1; BoltMethodPtr _fn2; @@ -226,12 +248,14 @@ public: public: ViewPortResource(BoltFilesState &state, const byte *src); virtual ~ViewPortResource() {} + + void setupViewPort(); }; class ViewPortListResource { public: byte *_field4; - Common::Array<byte *> _entries; + Common::Array<ViewPortResource *> _entries; ViewPortListResource(BoltFilesState &state, const byte *src); virtual ~ViewPortListResource() {} |