Open wangxa opened 2 years ago
I replaced "SDL_SetVideoMode" in gluqlo.c, but it does not work:
gluqlo.c:412:12: error: ‘SDL_CreateWindow’ was not declared in this scope screen = SDL_CreateWindow(0, 0, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);
Any hint?
I created a fork of gluqlo with SDL2 support. You will need to set the environment variable SDL_VIDEO_ALLOW_SCREENSAVER=1
before starting the screensaver daemon.
EDIT: fixed the screensaver settings/demo preview display
Thanks, kreddkrikk. I have tried your improved version. It works, except the preview in xscreensaver-demo.
I created a fork of gluqlo with SDL2 support. You will need to set the environment variable
SDL_VIDEO_ALLOW_SCREENSAVER=1
before starting the screensaver daemon.EDIT: fixed the screensaver settings/demo preview display
In here, it opens the screensavers, shows the flipclock and imediately goes back to the normal screen. As if i had moved my mouse or something.
Doesn't happens with other xscreensavers examples.
How would i fix this?
Thanks, kreddkrikk. I have tried your improved version. It works, except the preview in xscreensaver-demo.
I've now fixed the preview in xscreensaver-demo and xscreensaver-settings.
In here, it opens the screensavers, shows the flipclock and imediately goes back to the normal screen. As if i had moved my mouse or something.
Doesn't happens with other xscreensavers examples.
How would i fix this?
How is gluqlo starting? Are you running it separately (ie ./gluqlo
), using xscreensaver-command -activate
, or letting the xscreensaver daemon start it normally? Start a new issue in the forked repo and post the output you get when running it from command line with ./gluqlo
. Also include information about your Linux distro.
In Fedora 35, SDL has been updated to version 2. Please add the support for SDL2. The SDL_SetVideoMode (available in SDL 1.x) should be replaced with SDL_CreateWindow..