This commit is contained in:
turanszkij
2020-04-10 18:03:31 +01:00
parent 69616149e5
commit e724ac34df
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 39;
// minor bug fixes, alterations, refactors, updates
const int revision = 45;
const int revision = 46;
long GetVersion()
+5 -2
View File
@@ -547,8 +547,6 @@ void wiTextInputField::Update(wiGUI* gui, float dt)
if (state == ACTIVE)
{
font_input.params = font.params;
if (wiInput::Press(wiInput::KEYBOARD_BUTTON_ENTER))
{
// accept input...
@@ -578,6 +576,11 @@ void wiTextInputField::Update(wiGUI* gui, float dt)
font.params.posX = (int)translation.x + 2;
font.params.posY = (int)(translation.y + scale.y * 0.5f);
font.params.v_align = WIFALIGN_CENTER;
if (state == ACTIVE)
{
font_input.params = font.params;
}
}
void wiTextInputField::Render(const wiGUI* gui, CommandList cmd) const
{