Re: Question about ddraw implemtation

2011-05-13 Thread Ralph Little
Hi, On 11-05-13 10:15 AM, Henri Verbeet wrote: On 13 May 2011 19:03, Ralph Little wrote: trace:ddraw:CreateSurface DDSURF dwFlags(124) Is that correct? It doesn't have DDSD_PIXELFORMAT set. No scrap that last message, my original trace was incorrect. A typo meant I was outputting the s

Re: Question about ddraw implemtation

2011-05-13 Thread Ralph Little
Hi, On 13 May 2011 19:03, Ralph Little wrote: trace:ddraw:CreateSurface DDSURF dwFlags(124) Is that correct? It doesn't have DDSD_PIXELFORMAT set. Wait, you're right. I misread what the code was doing. /* No pixelformat given? Use the current screen format */ if(!(desc2.dwFlags

Re: Question about ddraw implemtation

2011-05-13 Thread Henri Verbeet
On 13 May 2011 19:03, Ralph Little wrote: > trace:ddraw:CreateSurface DDSURF dwFlags(124) Is that correct? It doesn't have DDSD_PIXELFORMAT set.

Re: Question about ddraw implemtation

2011-05-13 Thread Ralph Little
Hi, On 11-05-13 03:33 AM, Stefan Dösinger wrote: On Friday 13 May 2011 01:36:09 Ralph Little wrote: Hi, Further to my last post, I can confirm that the pixelformat structure is completely empty. A quick dump of the DDPIXELFORMAT structure shows that: Can you show us the entire DDSURFACEDESC2 s

Re: Question about ddraw implemtation

2011-05-13 Thread Stefan Dösinger
On Friday 13 May 2011 01:36:09 Ralph Little wrote: > Hi, > Further to my last post, I can confirm that the pixelformat structure is > completely empty. > A quick dump of the DDPIXELFORMAT structure shows that: Can you show us the entire DDSURFACEDESC2 structure? > b) DDPIXELFORMAT is properly fill

Re: Question about ddraw implemtation

2011-05-12 Thread Ralph Little
Hi, Further to my last post, I can confirm that the pixelformat structure is completely empty. A quick dump of the DDPIXELFORMAT structure shows that: = trace:ddraw:PixelFormat_DD2WineD3D =dwSize = 32, sizeof(32) trace:ddraw:PixelFormat_DD2WineD3D ===

Question about ddraw implemtation

2011-05-12 Thread Ralph Little
Hi, I have been looking into bug #9672 regarding a crash on startup of The Sims. Tracing through what is happening, the problem seems to be manifesting in the DirectDraw implementation. The Sims calls CreateSurface() with DDSD->dwFlags & DDSD_PIXELFORMAT set to state that a pixformat is speci