Skip to content

Commit

Permalink
fround left / top to stop subpixel artifacting
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 5, 2024
1 parent 50ddd35 commit f615886
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haxe/ui/backend/ComponentImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class ComponentImpl extends ComponentBase {
return;
}

left = Math.fround(left);
top = Math.fround(top);

if (this.x != left) this.x = left;
if (this.y != top) this.y = top;
}
Expand Down

0 comments on commit f615886

Please sign in to comment.