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

display: Add support for controling screensaver state. part 2/2 #1843

Merged
merged 5 commits into from May 24, 2020

Conversation

illume
Copy link
Member

@illume illume commented May 23, 2020

Continuing on #1734

src_c/display.c Outdated Show resolved Hide resolved
@nthykier
Copy link
Contributor

Didn't you want to rename these functions?

@illume
Copy link
Member Author

illume commented May 23, 2020

I pushed a change with the rename, and changed the default of set_allow_screensaver(value=True).

nthykier and others added 4 commits May 23, 2020 23:31
... 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: #1707
Signed-off-by: Niels Thykier <niels@thykier.net>
@illume illume merged commit 3ea30cb into master May 24, 2020
@illume illume deleted the sdl2-screensaver-support branch May 24, 2020 11:53
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.

None yet

2 participants