From 79fb73c5e1343a8dea0ca188e5f8cc3f17b43dd1 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 28 Dec 2024 10:49:03 +0100 Subject: [PATCH] fix mouse-picking (fixes #32) --- src/pick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pick.c b/src/pick.c index e1a2d31..68a8f29 100644 --- a/src/pick.c +++ b/src/pick.c @@ -157,7 +157,7 @@ static pick_result_t do_pick(float2_t mouse_pos, float2_t disp_size, float2_t of pick_result_t pick_dopick(float2_t mouse_pos, float2_t disp_size, float2_t gfx_offset, float gfx_aspect, float gfx_scale) { assert(pick.valid); - float2_t scale = { gfx_scale, gfx_scale * gfx_aspect }; + float2_t scale = { gfx_scale * gfx_aspect, gfx_scale }; pick.result = do_pick(mouse_pos, disp_size, gfx_offset, scale); return pick.result; }