diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-30 17:37:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 17:37:35 +0100 |
| commit | 7bcf33c881886e38f3e02b8ed72a7abc7b706f74 (patch) | |
| tree | bb3d784a2b7861b5ff863b1b7dd1eac05d9aac2a | |
| parent | 7058d6f320d4a136a0b9de92b3e3bcb9e791b2ef (diff) | |
| parent | 6bbe7d88b8fd93f6c07b7d1ece14af00353526eb (diff) | |
Merge pull request #3656 from laytan/microui-optional-clipboard
microui: make clipboard optional during init
| -rw-r--r-- | vendor/microui/microui.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/microui/microui.odin b/vendor/microui/microui.odin index cf39e2f55..e545b742b 100644 --- a/vendor/microui/microui.odin +++ b/vendor/microui/microui.odin @@ -319,7 +319,12 @@ default_draw_frame :: proc(ctx: ^Context, rect: Rect, colorid: Color_Type) { } } -init :: proc(ctx: ^Context, set_clipboard: proc(user_data: rawptr, text: string) -> (ok: bool), get_clipboard: proc(user_data: rawptr) -> (text: string, ok: bool), clipboard_user_data: rawptr) { +init :: proc( + ctx: ^Context, + set_clipboard: proc(user_data: rawptr, text: string) -> (ok: bool) = nil, + get_clipboard: proc(user_data: rawptr) -> (text: string, ok: bool) = nil, + clipboard_user_data: rawptr = nil, +) { ctx^ = {} // zero memory ctx.draw_frame = default_draw_frame ctx._style = default_style |