ui: drop redundant .* on pointer match subjects

event_position and translate_sdl_event matched on e.* / sdl.*; lowerMatch now auto-derefs a pointer subject, so 'if e ==' / 'if sdl ==' are equivalent (same load + tag-switch in IR). Pure cleanup.
This commit is contained in:
agra
2026-05-31 10:46:51 +03:00
parent cd2ab1c4b6
commit c08433b345

View File

@@ -46,7 +46,7 @@ Event :: enum {
}
event_position :: (e: *Event) -> ?Point {
if e.* == {
if e == {
case .mouse_down: (d) { return d.position; }
case .mouse_up: (d) { return d.position; }
case .mouse_moved: (d) { return d.position; }
@@ -77,7 +77,7 @@ keycode_from_sdl :: (k: SDL_Keycode) -> Keycode {
// Translate SDL_Event → our Event type
translate_sdl_event :: (sdl: *SDL_Event) -> Event {
if sdl.* == {
if sdl == {
case .quit: {
return .quit;
}