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

Draw rectangles as lines for some SDL versions. #6801

Merged
merged 2 commits into from Jun 26, 2022

Conversation

mesilliac
Copy link
Contributor

Aimed at fixing #6799.

According to the SDL bug linked there this was reported in SDL 2.0.15 and should have been fixed in 2.0.18. So i've set it to draw rectangles as four individual lines when linked against the affected SDL versions.

If the problem crops up again for others, the version check could be extended.

I'm assuming the problem doesn't also occur for lines.

@Wedge009 Wedge009 added the Graphics Issues that involve the graphics engine or assets. label Jun 25, 2022
@Wedge009
Copy link
Member

This seems to work for me, though it's unfortunate that such a work-around is necessary. Thanks.

Some versions of SDL aren't very good at drawing rectangles, on some
systems.

Aimed at fixing wesnoth#6799.
A few places were updated to use this check, including one that turned
out to be incorrectly making runtime decisions at compile time.
@mesilliac mesilliac merged commit 76422ac into wesnoth:master Jun 26, 2022
@mesilliac mesilliac deleted the alternate_rectangle_draw branch June 26, 2022 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graphics Issues that involve the graphics engine or assets.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants