8000 Supoort for SDL2 · Issue #20 · alexanderk23/gluqlo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Supoort for SDL2 #20

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

Open
wangxa opened this issue Nov 22, 2021 · 5 comments
Open

Supoort for SDL2 #20

wangxa opened this issue Nov 22, 2021 · 5 comments

Comments

@wangxa
Copy link
wangxa commented Nov 22, 2021

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..

@TheRaven500
Copy link

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?

@kreddkrikk
Copy link
kreddkrikk commented May 7, 2022

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

@wangxa
Copy link
Author
wangxa commented May 9, 2022

Thanks, kreddkrikk. I have tried your improved version. It works, except the preview in xscreensaver-demo.

@hrqmonteiro
Copy link

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?

@kreddkrikk
Copy link
kreddkrikk commented Jun 20, 2023

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.

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

No branches or pull requests

4 participants
0