summaryrefslogtreecommitdiff
path: root/src/gui/fonts/textchunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fonts/textchunk.cpp')
-rw-r--r--src/gui/fonts/textchunk.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/fonts/textchunk.cpp b/src/gui/fonts/textchunk.cpp
index 2cb7b2641..b0933a3e0 100644
--- a/src/gui/fonts/textchunk.cpp
+++ b/src/gui/fonts/textchunk.cpp
@@ -45,9 +45,12 @@ char *strBuf = nullptr;
int textChunkCnt = 0;
#endif
-TextChunk::TextChunk(const std::string &text0, const Color &color0,
- const Color &color1) :
+TextChunk::TextChunk(const std::string &text0,
+ const Color &color0,
+ const Color &color1,
+ const Font *const font) :
img(nullptr),
+ textFont(font),
text(text0),
color(color0),
color2(color1),