SAGA2: Init text blinking on creation. CID 1457865

This commit is contained in:
Eugene Sandulenko 2021-07-10 00:36:00 +02:00
parent 98da4283c7
commit 6c7bc55138
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -183,6 +183,7 @@ gTextBox::gTextBox(
cursorPos = anchorPos = scrollPixels = 0;
undoBuffer = new char[maxLen + 1]();
textFont = font;
oldFont = nullptr;
fontHeight = height;
fontOffset = fontHeight + 2;
@ -206,6 +207,10 @@ gTextBox::gTextBox(
selected = 0;
parent = &list;
blinkStart = 0;
blinkX = 0;
blinkState = 0;
// set the filedStrings pointer
fieldStrings = stringBufs;