EditBox and TextBox should always set a caret width, even when a default theme is used that doesn't specify one

0.8
Bruno Van de Velde 2017-10-04 18:51:53 +02:00
parent 309cd144d6
commit 5f40cf3ae6
2 changed files with 2 additions and 2 deletions

View File

@ -560,7 +560,7 @@ namespace tgui
FloatRect m_selectedTextBackground;
// The blinking caret
FloatRect m_caret;
FloatRect m_caret = {{0, 0, 1, 0}};
// Is there a possibility that the user is going to double click?
bool m_possibleDoubleClick = false;

View File

@ -488,7 +488,7 @@ namespace tgui
Color m_backgroundColorCached;
Color m_caretColorCached;
Color m_selectedTextBackgroundColorCached;
float m_caretWidthCached = 0;
float m_caretWidthCached = 1;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
};