ddraw [try 2]: SetCooperativeLevel with Full screen + exclusive + normal is authorized

paulo lesgaz jeremielapuree at yahoo.fr
Tue Aug 24 10:48:19 CDT 2010

Is this patch correct to test d3d7 and d3d2 SetCooperativeLevel?
For now, all the tests pass on a real vista box.


De : Stefan Dösinger <stefandoesinger at gmx.at>
À : paulo lesgaz <jeremielapuree at yahoo.fr>
Cc : wine-devel at winehq.org
Envoyé le : Mar 24 août 2010, 16h 44min 38s
Objet : Re: Re : ddraw [try 2]: SetCooperativeLevel with Full screen + exclusive 
+ normal is authorized

I think those tests should do, but have a few spelling issues and you're not 
releasing the surface. So if I understand things correctly:

*) NORMAL | FULLSCREEN | EXCLUSIVE -> fullscreen mode
*) NORMAL | EXCLUSIVE -> error
*) NORMAL | FULLSCREEN -> windowed mode

For testing older ddraw interface vesions you can QueryInterface the ddraw 
object for IID_IDirectDraw, IID_IDirectDraw2(and ddraw3 and ddraw4). Then you 
run the same tests on those.

I am pretty sure the check that NORMAL mode is mutually exclusive with 
FULLSCREEN/EXCLUSIVE already existed in old ddraw, and is motivated by a 
statement in msdn that those modes are mutually exclusive - which makes sense, 
you can't be in fullscreen mode and not be in fullscreen mode at the same time. 
It seems that one flag is ignored rather than an error returned.

On a general note, I am away from home the next weeks. I expect to be able to 
read mail, but it will me sporadic(ok, I haven't been reliable in the past few 
weeks either)

Am 24.08.2010 um 15:26 schrieb paulo lesgaz:

Such tests are what you were thinking about?
>They all passed on my real vista box.
De : Stefan Dösinger <stefandoesinger at gmx.at>
>À : wine-devel at winehq.org
>Envoyé le : Mar 24 août 2010, 11h 30min 59s
>Objet : Re: ddraw [try 2]: SetCooperativeLevel with Full screen + exclusive + 
>normal is authorized
>Can you add a test that tests in which mode ddraw is after such a call? 
>Specfically, try to create a double buffered primary surface. If this succeeds, 
>ddraw is in fullscreen mode. If ddraw is in normal mode you'll get 
>DDERR_NOEXCLUSIVEMODE (or similar) back.
>Am 24.08.2010 um 10:00 schrieb David Adam:
>> Fixed a typo
>> A+
>> David
>> <0001-SetCooperativeLevel-with-Full-screen-exclusive-norma.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20100824/9a00b1a6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SetCooperativeLevel-with-Full-screen-exclusive-norma.patch
Type: text/x-patch
Size: 7616 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20100824/9a00b1a6/attachment-0001.bin>

More information about the wine-devel mailing list