Skip to content

Commit

Permalink
actually just need the reciprocate
Browse files Browse the repository at this point in the history
good amy
  • Loading branch information
tomara-x committed May 8, 2024
1 parent a2dfd06 commit e00d787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/circles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ pub fn update_info_text(
for (id, info) in query.iter_mut() {
let t = trans_query.get_mut(id).unwrap();
if t.is_changed() || info.is_added() || text_size.is_changed() {
text_bounds.get_mut(info.0).unwrap().size.x = t.scale.x * (1.2/text_size.0);
text_bounds.get_mut(info.0).unwrap().size.x = t.scale.x * text_size.0.recip();
let t = t.translation;
trans_query.get_mut(info.0).unwrap().translation = t.xy().extend(t.z + 0.00001);
}
Expand Down

0 comments on commit e00d787

Please sign in to comment.