ui/winui/label.cpp

branch
newapi
changeset 231
e160bb392148
parent 221
a82d9beaa94a
child 245
06e655d15b17
--- a/ui/winui/label.cpp	Sun Jan 28 09:35:44 2024 +0100
+++ b/ui/winui/label.cpp	Sun Jan 28 10:06:54 2024 +0100
@@ -94,13 +94,13 @@
     UiWidget* widget = (UiWidget*)str->obj;
     TextBlock box = widget->uielement.as<TextBlock>();
     std::wstring wstr(box.Text());
-    return ui_string_get(str, wstr);
+    return ui_wstring_get(str, wstr);
 }
 
 void  ui_label_set(UiString* str, const char* newvalue) {
     UiWidget* widget = (UiWidget*)str->obj;
     TextBox box = widget->uielement.as<TextBox>();
-    box.Text(ui_string_set(str, newvalue));
+    box.Text(ui_wstring_set(str, newvalue));
 }
 
 

mercurial