Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an artefact occuring if the position of an overlay is not :center or (0, 0). Bump to v0.1.1 #2

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Feb 26, 2024

No description provided.

@varsill varsill requested a review from mat-hek February 26, 2024 11:34
Comment on lines 103 to 105
uv_x = if is_integer(opts[:x]), do: div(opts[:x], 2), else: opts[:x]
uv_y = if is_integer(opts[:y]), do: div(opts[:y], 2), else: opts[:y]
opts_uv = [x: uv_x, y: uv_y]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • you forgot blend_mode
  • maybe it would be better to do this in handle_init and keep opts as a tuple {opts_y, opts_uv}

@varsill varsill requested a review from mat-hek March 12, 2024 16:38
@varsill varsill merged commit 7f814fb into master Mar 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants