From aa3e5561665e6ef0e4082c63bed9664340460d1b Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Sat, 27 Apr 2024 18:18:42 +0200 Subject: Prepped for newer odin version --- lib/oui/oui.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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} } } -- cgit v1.2.1