Dmitry Timoshkov a écrit :
"Jérôme Gardou" jerome.gardou@gmail.com wrote:
Quite oddly enough, wined3d and winex11 don't communicate with each other at all (well, wined3d uses WGL in gdi32, and gdi32 is based on winex11), and this leads to problems which are tricky to resolve... For instance, when a d3d application wants to disable screensavers,
And how exactly does it "want" to do that?
By setting presentationparameters->windowed = false and using D3DCREATE_SCREENSAVER in BehaviorFlags when creating a device.
there is no way to do this through the windows api, but xlib provides XSetScreenSaver which is axactly what we need there.
http://www.google.com/search?q=how+to+disable+screen+saver+under+windows+pro...
Good catch. I will try this way.
Would it be a good way to do this, as in user32 and gdi32, to create a driver structure holding each function pointer we would need, and forward them to stub if unavailable?
Have you looked how it's currently implemented?
Yes. I don't see any major problem with this design.