SDL2 and screensaver

I remember SDL 1.x used to disable screensavers by default and you used to
need a SDL_putenv with:

SDL_VIDEO_ALLOW_SCREENSAVER

… to enable it.

Does SDL2 still have something builtin to disable screensavers?

I’ve seen that under Mint14 in some rare cases the screensaver still pop
outs…

And in the SDL HG root directory:

grep -r SDL_VIDEO_ALLOW_S src

… returns no match!–
Bye,
Gabry

SDL_DisableScreenSaver

? 2013-12-4???6:36?“Gabriele Greco” <gabriele.greco at darts.it> ???> I remember SDL 1.x used to disable screensavers by default and you used to need a SDL_putenv with:

SDL_VIDEO_ALLOW_SCREENSAVER

… to enable it.

Does SDL2 still have something builtin to disable screensavers?

I’ve seen that under Mint14 in some rare cases the screensaver still pop outs…

And in the SDL HG root directory:

grep -r SDL_VIDEO_ALLOW_S src

… returns no match!


Bye,
Gabry


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

jh wrote:

SDL_DisableScreenSaver

Does it work on android? Because it does not work for me, ie SDL_IsScreenSaverEnabled() shows the state changes, but android screen gets locked.
I used permissions WAKE_LOCK and DISABLE_KEYGUARD in AndroidManifest.xml. Should I change anything else?

Same as you.
I didn’t find a solution too, perhaps only can resolve it in Java layer.

? 2013-12-4???7:45?“miko” ???

jh wrote:
SDL_DisableScreenSaver

Does it work on android? Because it does not work for me, ie SDL_IsScreenSaverEnabled() shows the state changes, but android screen gets locked.
I used permissions WAKE_LOCK and DISABLE_KEYGUARD in AndroidManifest.xml. Should I change anything else?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-------------- next part --------------_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org