Skip to content

Commit

Permalink
fix mouse-picking (fixes #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 28, 2024
1 parent 3eef254 commit 79fb73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 79fb73c

Please sign in to comment.