ddraw: Add tests for Setcooperativelevel

Stefan Dösinger stefandoesinger at gmx.at
Thu Jun 2 05:51:21 CDT 2011


On Wednesday 01 June 2011 20:37:36 paulo lesgaz wrote:

> Yes, see bug 25660
> My tests prove that
> DDSCL_CREATEDEVICEWINDOW+DDSCL_EXCLUSIVE+DDSCL_FULLSCREEN is allowed with
> a NULL window. That is what expected by Half life I demo.
Erm, I missed that in your patch, it was right at the top of the function.

> >have are somewhat unsatisfying, we don't have a single test where
> >DDSCL_CREATEDEVICEWINDOW is supposed to succeed.
> 
> Maybe it would be the subject of an another patch?
Yes, although I am interested in things beyond the return value of 
SetCooperativeLevel. E.g. how does the device window work wrt clipping - is 
the primary surface rendered to the device window, or is it still rendered to 
the screen(to see what I mean run the dx7 sdk's ddraw font sample on Windows). 
Is there a relationship between the front buffer's size and the device window? 
With a device window, does the front buffer still have screen size, or does it 
have the size of the device window at creation time?

Some of those things are probably tricky to test from an automated test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110602/83adaf51/attachment.pgp>


More information about the wine-devel mailing list