Fixed some missing initializations in TextComponent.

This commit is contained in:
Leon Styhre 2022-01-30 19:31:53 +01:00
parent 3bf46c3fb0
commit bf222d7eb0

View file

@ -15,7 +15,9 @@
TextComponent::TextComponent()
: mFont {Font::get(FONT_SIZE_MEDIUM)}
, mColor {0x000000FF}
, mBgColor {0}
, mBgColor {0x00000000}
, mColorOpacity {0x00000000}
, mBgColorOpacity {0x00000000}
, mRenderBackground {false}
, mUppercase {false}
, mAutoCalcExtent {1, 1}
@ -36,7 +38,9 @@ TextComponent::TextComponent(const std::string& text,
unsigned int bgcolor)
: mFont {nullptr}
, mColor {0x000000FF}
, mBgColor {0}
, mBgColor {0x00000000}
, mColorOpacity {0x00000000}
, mBgColorOpacity {0x00000000}
, mRenderBackground {false}
, mUppercase {false}
, mAutoCalcExtent {1, 1}