aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/files.h
diff options
context:
space:
mode:
authorPaul Gilbert2013-06-15 11:39:28 -0400
committerPaul Gilbert2013-06-15 11:39:28 -0400
commit0a0db2bf73fc417d1094ae744e0d350dd4462d38 (patch)
tree739de6bc60f48fbbde8b01916be4dac38618365c /engines/voyeur/files.h
parentb02c72b45f0ea15490b41896e33d40cb783b96e6 (diff)
downloadscummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.tar.gz
scummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.tar.bz2
scummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.zip
VOYEUR: Refactoring and bugfixes for correctly loading fontInfo and font resources
Diffstat (limited to 'engines/voyeur/files.h')
-rw-r--r--engines/voyeur/files.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/engines/voyeur/files.h b/engines/voyeur/files.h
index 499cbb8972..f612904b6d 100644
--- a/engines/voyeur/files.h
+++ b/engines/voyeur/files.h
@@ -112,6 +112,7 @@ private:
void initViewPort();
void initViewPortList();
void initFontInfo();
+ void initFont();
void initSoundMap();
private:
void resolveAll();
@@ -133,7 +134,8 @@ public:
void resolveIt(uint32 id, byte **p);
void resolveFunction(uint32 id, GraphicMethodPtr *fn);
- BoltEntry &getBoltEntry(uint32 id);
+ BoltEntry &boltEntry(uint16 id);
+ BoltEntry &getBoltEntryFromLong(uint32 id);
PictureResource *getPictureResource(uint32 id);
CMapResource *getCMapResource(uint32 id);
};
@@ -174,6 +176,7 @@ public:
ViewPortResource *_viewPortResource;
ViewPortListResource *_viewPortListResource;
FontResource *_fontResource;
+ FontInfoResource *_fontInfoResource;
CMapResource *_cMapResource;
VInitCyclResource *_vInitCyclResource;
public:
@@ -299,6 +302,34 @@ public:
virtual ~FontResource();
};
+enum FontJustify { ALIGN_LEFT = 0, ALIGN_CENTRE = 1, ALIGN_RIGHT = 2 };
+
+class FontInfoResource {
+public:
+ FontResource *_curFont;
+ byte _picFlags;
+ byte _picSelect;
+ byte _picPick;
+ byte _picOnOff;
+ byte _fontFlags;
+ FontJustify _justify;
+ int _fontSaveBack;
+ Common::Point _pos;
+ int _justifyWidth;
+ int _justifyHeight;
+ Common::Point _shadow;
+ int _foreColor;
+ int _backColor;
+ int _shadowColor;
+public:
+ FontInfoResource(BoltFilesState &state, const byte *src);
+ FontInfoResource();
+ FontInfoResource(byte picFlags, byte picSelect, byte picPick, byte picOnOff, byte fontFlags,
+ FontJustify justify, int fontSaveBack, const Common::Point &pos, int justifyWidth,
+ int justifyHeight, const Common::Point &shadow, int foreColor, int backColor,
+ int shadowColor);
+};
+
class CMapResource {
private:
VoyeurEngine *_vm;