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

Updating display.update() docs to reflect actual behaviour of SDL. #1773

Conversation

MyreMylar
Copy link
Contributor

This is because the 'rect' parameter is treated by SDL as a suggestion rather than a rule and platform implementations are ignoring it.

Related to:
#251

Copy link
Contributor

@nthykier nthykier left a comment

Choose a reason for hiding this comment

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

Looks fine to me. :)

@illume
Copy link
Member

illume commented May 17, 2020

Not sure about this one. Because the documented functionality of SDL_UpdateWindowSurfaceRects does not say it's a hint. (I saw Sam's comment).

@MyreMylar
Copy link
Contributor Author

Ah, I see you submitted a patch to SDL for this not working on windows. Does it work fine on mac & linux then? If so then we should likely just leave the docs as they are and close the original bug once the SDL patch is merged.

@nthykier
Copy link
Contributor

In my view, the alternative is to ask the SDL devs to update the documentation to reflect their view on that function. If we keep the status quo, then we will end up here eventually when pygame is used on a new platform that does not support that feature again.

@MyreMylar
Copy link
Contributor Author

I'll switch this to draft for now so we don't accidentally merge it while there is uncertainty on the SDL position.

@MyreMylar MyreMylar marked this pull request as draft May 18, 2020 06:14
@MyreMylar MyreMylar closed this May 23, 2020
@MyreMylar MyreMylar deleted the document-display-update-rect-behaviour branch June 5, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants