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 the weird seam visible in button widgets #1605

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

Tictim
Copy link
Contributor

@Tictim Tictim commented Mar 14, 2023

What

This PR fixes the weird seam visible in middle of button widgets.

Implementation Details

The issue is caused by providing subpixel position to drawSubArea function, likely because of the IntelliJ IDEA overanalyzing the code as always and subsequently freaking out saying dropping decimal points is major sin.

I've changed the implementation to correctly draw the image without seams, while making IDEA shut the fuck up about reporting nonexistent errors.

Outcome

World peace

@Tictim Tictim added the type: bug Something isn't working label Mar 14, 2023
@TechLord22 TechLord22 added this to the 2.5.5 milestone Mar 15, 2023
@TechLord22 TechLord22 merged commit d7de701 into GregTechCEu:master Mar 16, 2023
@Tictim Tictim deleted the button_seam_fix branch March 16, 2023 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants