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
display: Add support for controling screensaver state. part 1/2 #1734
display: Add support for controling screensaver state. part 1/2 #1734
Conversation
a084293
to
a49132e
Compare
... on platforms that support it with SDL2. SDL2 does not provide any visible feedback on whether the controls have an effect and may "silently" say it changed the state without actually doing anything (except update the boolean variable, which `SDL_IsScreenSaverEnabled` returns). Accordingly, we document that these functions may be unreliable on certain platforms without any visible clue. For SDLv1, we just raise a `TypeError` as these functions are not supported there. Closes: pygame#1707 Signed-off-by: Niels Thykier <niels@thykier.net>
a49132e
to
6baadc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks now everything should be ok
3249de0
to
6baadc7
Compare
I made a few doc changes, and am making a few changes to display.c now. |
This may just be me, but I think the word 'enable' is misleading here?
How about we follow the environment variable name a bit? 'Allow' from
https://wiki.libsdl.org/SDL_HINT_VIDEO_ALLOW_SCREENSAVER @nthykier if you're ok with it, I can change them to get_allow_screensaver/set_allow_screensaver ? |
efeebf4
to
5832fb3
Compare
@illume Renaming them is fine with me. :) |
@MyreMylar I pinged you for a review because you had a |
Ok, thanks :) I'll work on renaming now. |
Merging into |
... on platforms that support it with SDL2.
SDL2 does not provide any visible feedback on whether the controls
have an effect and may "silently" say it changed the state without
actually doing anything (except update the boolean variable, which
SDL_IsScreenSaverEnabled
returns). Accordingly, we document thatthese functions may be unreliable on certain platforms without any
visible clue.
For SDLv1, we just raise a
TypeError
as these functions are notsupported there.
Closes: #1707
Signed-off-by: Niels Thykier niels@thykier.net
https://wiki.libsdl.org/SDL_HINT_VIDEO_ALLOW_SCREENSAVER