mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Fix not compiling on haiku OS
This commit is contained in:
parent
678da53658
commit
f34c725d8c
@ -317,7 +317,7 @@ void Window_Create3D(int width, int height) {
|
|||||||
|
|
||||||
void Window_SetTitle(const cc_string* title) {
|
void Window_SetTitle(const cc_string* title) {
|
||||||
char raw[NATIVE_STR_LEN];
|
char raw[NATIVE_STR_LEN];
|
||||||
Platform_EncodeUtf8(raw, title);
|
String_EncodeUtf8(raw, title);
|
||||||
|
|
||||||
win_handle->Lock(); // TODO even need to lock/unlock?
|
win_handle->Lock(); // TODO even need to lock/unlock?
|
||||||
win_handle->SetTitle(raw);
|
win_handle->SetTitle(raw);
|
||||||
@ -339,7 +339,7 @@ void Clipboard_GetText(cc_string* value) {
|
|||||||
|
|
||||||
void Clipboard_SetText(const cc_string* value) {
|
void Clipboard_SetText(const cc_string* value) {
|
||||||
char str[NATIVE_STR_LEN];
|
char str[NATIVE_STR_LEN];
|
||||||
int str_len = Platform_EncodeUtf8(str, value);
|
int str_len = String_EncodeUtf8(str, value);
|
||||||
|
|
||||||
if (!be_clipboard->Lock()) return;
|
if (!be_clipboard->Lock()) return;
|
||||||
be_clipboard->Clear();
|
be_clipboard->Clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user