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

Qt: fix invisible first icon in game list #13796

Merged
merged 1 commit into from May 1, 2023
Merged

Conversation

Megamouse
Copy link
Contributor

  • Fixes a bug that causes the first item in the game list to have an invisible icon.

Once the first icon got smaller than 30 pixels it wasn't counted as visible.
It turns out that the visibleRegion of the table has an offset that is exactly the size of the table headers.
So the visibleRegion started at (0,30), while the icons' visualRects started at the origin of the table itself (without headers).
When a small icon was at (0,0) with a height below 30 it would therefore never pass the visibility checks.

Simply offsetting the visibleRegion by the header size brought its position back to (0,0), meaning we can properly do the check.

@Megamouse Megamouse merged commit ea3a73b into RPCS3:master May 1, 2023
4 of 5 checks passed
@Megamouse Megamouse deleted the fixbug branch May 2, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant