Jump to content

  • Log In with Google      Sign In   
  • Create Account

Using an API like SDL to create a Windows screensaver?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 PrestoChung   Members   -  Reputation: 184

Like
0Likes
Like

Posted 31 December 2011 - 01:37 PM

How hard is it to create a screen-saver for Windows?

The reason I want to try is because Windows 7 does not support spanned desktop, so the pictures slideshow will not show dual-monitor images properly across both monitors.

Might have to get into the Windows API to get access to draw on the 2nd monitor? SDL could still handle the image loading/manipulation.

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9598

Like
0Likes
Like

Posted 31 December 2011 - 01:48 PM

It's not that hard to create a screensaver for Windows, but creating a fully compliant SDL screensaver would probably take some hackery of SDL. The reason being that screen savers are required to execute certain code as part of existing windows, for example, for screensaver previews and settings. If you search msdn.microsoft.com you can get quite a few examples, including in C#, but if you want to start from scratch you need to handle three different command line arguments: /s to start the screensaver in full-screen mode, /c to show the configuration settings dialog box and /p XXXX, to display a preview image in the window handle whose numeric value is described by the XXX.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS