From 507019abdaf52499699f048ac50561e5c5d74cf8 Mon Sep 17 00:00:00 2001 From: elasota Date: Fri, 7 Feb 2020 02:44:13 -0500 Subject: [PATCH] Redraw editbox when text changes --- PortabilityLayer/PLEditboxWidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PortabilityLayer/PLEditboxWidget.cpp b/PortabilityLayer/PLEditboxWidget.cpp index d9f3c88..31922a8 100644 --- a/PortabilityLayer/PLEditboxWidget.cpp +++ b/PortabilityLayer/PLEditboxWidget.cpp @@ -62,6 +62,13 @@ namespace PortabilityLayer m_length = len; memcpy(m_chars, str.UChars(), len); + + if (m_window) + { + DrawSurface *surface = m_window->GetDrawSurface(); + + DrawControl(surface); + } } PLPasStr EditboxWidget::GetString() const