diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oui/oui.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oui/oui.odin b/lib/oui/oui.odin index a0098ca..88bafa1 100644 --- a/lib/oui/oui.odin +++ b/lib/oui/oui.odin @@ -316,13 +316,13 @@ get_cursor_delta_frame :: #force_inline proc(ctx: ^Context) -> I2 { set_button :: proc(ctx: ^Context, button: Mouse_Button, enabled: bool) { if enabled { - incl(&ctx.buttons, button) + ctx.buttons += {button} } else { if ctx.button_ignore != nil && (button in ctx.buttons) { ctx.button_ignore = nil } - excl(&ctx.buttons, button) + ctx.buttons -= {button} } } |