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 menu boxes in TD being too small #995

Closed
wants to merge 1 commit into from

Conversation

hazelnot
Copy link

@hazelnot hazelnot commented Apr 5, 2024

Fixes the menu boxes being one pixel too short vertically and horizontally, as well as the small gaps in the TD DOS sidebar.

Fixes #993 and partially #756

(Thanks to @mvdhout1992 for actually fixing the code, I just implemented it)

@hazelnot hazelnot force-pushed the boxfix branch 5 times, most recently from 5b59dca to 559c637 Compare April 7, 2024 11:58
Copy link
Collaborator

@giulianobelinassi giulianobelinassi left a comment

Choose a reason for hiding this comment

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

I am not happy with the amount of clipping this fix does. Are the coordinates of the FillRect call actually correct for the menus?

@OmniBlade
Copy link
Contributor

#1000 is al alternative fix to this which is a less invasive change. After investigation it looks to me as though it is an issue with how the original DDraw path and the new SDL paths treat the clipping rect.

@OmniBlade OmniBlade closed this Jun 18, 2024
@hazelnot hazelnot deleted the boxfix branch June 18, 2024 13:12
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.

[TD] Menu backgrounds are all one pixel too small on the bottom and right sides
3 participants