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

Adjacent quads sometimes slightly overlap #586

Open
pstroka opened this issue Aug 27, 2024 · 0 comments
Open

Adjacent quads sometimes slightly overlap #586

pstroka opened this issue Aug 27, 2024 · 0 comments

Comments

@pstroka
Copy link

pstroka commented Aug 27, 2024

The problem is only visible when the color of the quad has some transparency. The overlapping quads create a less transparent background.

I found it happening in two situations:

  1. when x, y, width or height has a floating point (this isn't a big problem, you can work around it by using floor or ceil when necessary)
    screenshot-2024-08-27-16-04-50

  2. when using fractional scaling (I used 125% here)
    screenshot-2024-08-27-16-05-35

Note: these screenshots are from my attempt to implement pop-os/cosmic-term#294, the problem doesn't appear in COSMIC Terminal from the master branch.

I guess it has something to do with converting the position/size from float to int.

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

No branches or pull requests

1 participant