aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/font.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-03 21:58:36 -0500
committerPaul Gilbert2017-12-03 21:58:36 -0500
commit341c6a95e3e86a83d7e5e569420064bd231e2ae0 (patch)
tree0de16af1da30e76b96e925a0742a816061ed0fdc /engines/xeen/font.cpp
parent9ba9265583beb24ce4a845541a4cec6529c27a25 (diff)
downloadscummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.tar.gz
scummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.tar.bz2
scummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.zip
XEEN: Fix Coverity warnings
Diffstat (limited to 'engines/xeen/font.cpp')
-rw-r--r--engines/xeen/font.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp
index 2a19a770f9..1d7dab7e21 100644
--- a/engines/xeen/font.cpp
+++ b/engines/xeen/font.cpp
@@ -33,11 +33,12 @@ byte FontData::_bgColor;
bool FontData::_fontReduced;
Justify FontData::_fontJustify;
-FontSurface::FontSurface() : XSurface() {
+FontSurface::FontSurface() : XSurface(), _msgWraps(false), _displayString(nullptr) {
setTextColor(0);
}
-FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv), _msgWraps(false), _displayString(nullptr) {
+FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv),
+ _msgWraps(false), _displayString(nullptr) {
create(w, h);
setTextColor(0);
}