diff options
author | Tobia Tesan | 2017-05-01 12:29:25 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-05-02 21:01:23 +0100 |
commit | bd7ded3f56c61b4a9eb0798b34dcce17140af334 (patch) | |
tree | 4ed5235b957f95242911c5246dd9753aa62035d0 | |
parent | 415d9d660ecca0518c42e151eceedb58834ceb14 (diff) | |
download | scummvm-rg350-bd7ded3f56c61b4a9eb0798b34dcce17140af334.tar.gz scummvm-rg350-bd7ded3f56c61b4a9eb0798b34dcce17140af334.tar.bz2 scummvm-rg350-bd7ded3f56c61b4a9eb0798b34dcce17140af334.zip |
DIRECTOR: Add CachedMacText to TextCast
-rw-r--r-- | engines/director/cast.cpp | 4 | ||||
-rw-r--r-- | engines/director/cast.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp index 0dd6e53248..0ee5a8f15c 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -21,6 +21,7 @@ */ #include "director/director.h" +#include "director/cachedmactext.h" #include "director/cast.h" #include "director/score.h" @@ -177,6 +178,9 @@ TextCast::TextCast(Common::ReadStreamEndian &stream, uint16 version) { } modified = 0; + + cachedMacText = new CachedMacText(this, version); + // TODO Destroy me } void TextCast::importStxt(const Stxt *stxt) { diff --git a/engines/director/cast.h b/engines/director/cast.h index a542bf7b87..7df9d94a59 100644 --- a/engines/director/cast.h +++ b/engines/director/cast.h @@ -31,6 +31,7 @@ namespace Director { class Stxt; +class CachedMacText; enum CastType { kCastTypeNull = 0, @@ -141,6 +142,7 @@ public: Common::String _ftext; void importStxt(const Stxt *stxt); + CachedMacText *cachedMacText; }; enum ButtonType { |