diff options
author | San Jacobs | 2024-04-27 18:18:42 +0200 |
---|---|---|
committer | San Jacobs | 2024-04-27 18:18:42 +0200 |
commit | aa3e5561665e6ef0e4082c63bed9664340460d1b (patch) | |
tree | 0f47f20bdcaa985eb4aa1dab2542c09eb2df996a /lib | |
parent | f5418b410b37eb9523f3a221d83bc87f99bb4f4f (diff) | |
download | satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.tar.gz satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.tar.bz2 satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.zip |
Prepped for newer odin version
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} } } |