On 10 March 2014 14:46, Stefan Dösinger stefan@codeweavers.com wrote:
- hr = IDirectDraw4_GetCaps(ddraw, &hal_caps, &hel_caps);
You're not using "hel_caps".
if (!overlay_support)
ddsd.ddsCaps.dwCaps &= ~DDSCAPS_OVERLAY;
This will result in trying to create a surface with just DDSCAPS_VIDEOMEMORY set in the caps. What kind of surface do you expect that to create?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2014-03-10 16:01, schrieb Henri Verbeet:
On 10 March 2014 14:46, Stefan Dösinger stefan@codeweavers.com wrote:
- hr = IDirectDraw4_GetCaps(ddraw, &hal_caps, &hel_caps);
You're not using "hel_caps".
I believe setting the second parameter to NULL crashes on some Windows versions and/or some ddraw versions. dsurface.c suggests otherwise at least for IDirectDraw though.