diff --git a/src/platform/orca_clock.c b/src/platform/orca_clock.c new file mode 100644 index 0000000..8658f0a --- /dev/null +++ b/src/platform/orca_clock.c @@ -0,0 +1,6 @@ +#include"util/typedefs.h" +#include"platform_clock.h" + +void ORCA_IMPORT(mp_clock_init)(); + +f64 ORCA_IMPORT(mp_get_time)(mp_clock_kind clock); diff --git a/src/platform/platform_clock.h b/src/platform/platform_clock.h index 023b885..98fba1d 100644 --- a/src/platform/platform_clock.h +++ b/src/platform/platform_clock.h @@ -10,6 +10,7 @@ #define __PLATFORM_CLOCK_H_ #include"util/typedefs.h" +#include"platform.h" #ifdef __cplusplus extern "C" { diff --git a/src/ui.c b/src/ui.c index fd13c1a..de97e29 100644 --- a/src/ui.c +++ b/src/ui.c @@ -2249,6 +2249,7 @@ str32 ui_edit_delete_selection(ui_context* ui, str32 codepoints) void ui_edit_copy_selection_to_clipboard(ui_context* ui, str32 codepoints) { + #if !PLATFORM_ORCA if(ui->editCursor == ui->editMark) { return; @@ -2260,13 +2261,18 @@ void ui_edit_copy_selection_to_clipboard(ui_context* ui, str32 codepoints) mp_clipboard_clear(); mp_clipboard_set_string(string); + #endif } str32 ui_edit_replace_selection_with_clipboard(ui_context* ui, str32 codepoints) { + #if PLATFORM_ORCA + str32 result = {0}; + #else str8 string = mp_clipboard_get_string(&ui->frameArena); str32 input = utf8_push_to_codepoints(&ui->frameArena, string); str32 result = ui_edit_replace_selection_with_codepoints(ui, codepoints, input); + #endif return(result); } @@ -2297,7 +2303,7 @@ typedef struct ui_edit_command } ui_edit_command; -#if PLATFORM_WINDOWS +#if PLATFORM_WINDOWS || PLATFORM_ORCA #define OS_COPY_PASTE_MOD MP_KEYMOD_CTRL #elif PLATFORM_MACOS #define OS_COPY_PASTE_MOD MP_KEYMOD_CMD