diff options
author | Tobia Tesan | 2017-04-30 00:18:23 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-04-30 09:48:08 +0200 |
commit | ed2f09b13f31f4d9c372c2d7f8f0f66d7acb854d (patch) | |
tree | a4b1b841e67b0db6223681d368b07614fd34d411 /graphics/macgui | |
parent | af664fe757b0834e011e93420911428b361c516e (diff) | |
download | scummvm-rg350-ed2f09b13f31f4d9c372c2d7f8f0f66d7acb854d.tar.gz scummvm-rg350-ed2f09b13f31f4d9c372c2d7f8f0f66d7acb854d.tar.bz2 scummvm-rg350-ed2f09b13f31f4d9c372c2d7f8f0f66d7acb854d.zip |
GRAPHICS: Delete MacFont in MacText
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/mactext.cpp | 5 | ||||
-rw-r--r-- | graphics/macgui/mactext.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 9dcb380833..62c4e8efa4 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -37,6 +37,11 @@ const Font *MacFontRun::getFont() { return font; } + +MacText::~MacText(){ + delete _macFont; +} + MacText::MacText(Common::String s, MacWindowManager *wm, const MacFont *macFont, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment) { _str = s; _wm = wm; diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index c9d24a006d..25f6002707 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -90,7 +90,7 @@ class MacText { public: MacText(Common::String s, MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth = -1, TextAlign textAlignment = kTextAlignLeft); - + ~MacText(); void setInterLinear(int interLinear); void draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int yoff); |