From f34c725d8c3c58c8e177768f8c7c1c064011cb91 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 19 Jun 2023 21:28:02 +1000 Subject: [PATCH] Fix not compiling on haiku OS --- src/Window_Haiku.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Window_Haiku.cpp b/src/Window_Haiku.cpp index 854bb8e9e..be2362828 100644 --- a/src/Window_Haiku.cpp +++ b/src/Window_Haiku.cpp @@ -317,7 +317,7 @@ void Window_Create3D(int width, int height) { void Window_SetTitle(const cc_string* title) { char raw[NATIVE_STR_LEN]; - Platform_EncodeUtf8(raw, title); + String_EncodeUtf8(raw, title); win_handle->Lock(); // TODO even need to lock/unlock? win_handle->SetTitle(raw); @@ -339,7 +339,7 @@ void Clipboard_GetText(cc_string* value) { void Clipboard_SetText(const cc_string* value) { char str[NATIVE_STR_LEN]; - int str_len = Platform_EncodeUtf8(str, value); + int str_len = String_EncodeUtf8(str, value); if (!be_clipboard->Lock()) return; be_clipboard->Clear();