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

Minor SDL interface tidy up #6809

Merged
merged 5 commits into from Jun 29, 2022
Merged

Conversation

mesilliac
Copy link
Contributor

Mostly removing unused or already recategorized functions, with some other general cleaning, organization and minor reshuffling.

Most of the mess is because sdl/rect.hpp was including sdl/utils.hpp and now no longer is. Turns out a lot was depending on that for its side effects.

@github-actions github-actions bot added UI User interface issues, including both back-end and front-end issues. Units Issues that involve unit definitions or their implementation in the engine. labels Jun 28, 2022
Functions have moved to draw.hpp and sdl/texture.hpp as appropriate.
Most of these had already moved. set_texture_blend_mode() was the last
uncategorized function. It is now in texture.hpp.
sdl_copy_portion (only used one place internally, so inlined there)
stretch_surface_horizontal (obsoleted by hardware rendering)
stretch_surface_vertical (obsoleted by hardware rendering)
tile_surface (obsoleted by hardware rendering)
surface_submerge_alpha (now done via IPF)
blit_surface (not used anywhere, so sdl_blit must be fine)
And then have to clean up over a dozen files that were relying on
sdl/rect.hpp including sdl/utils.hpp and various other side effects.
gui/widgets/helper.*pp had an implementation creating a rectangle
from points. It was added to sdl/rect.hpp.
@mesilliac mesilliac merged commit 9b9d30b into wesnoth:master Jun 29, 2022
@mesilliac mesilliac deleted the sdl_render_cleanup branch June 29, 2022 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI User interface issues, including both back-end and front-end issues. Units Issues that involve unit definitions or their implementation in the engine.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants