Diablo II - Lord of Destruction Expansion
Lionel Ulmer
bbrox at bbrox.org
Mon Jul 30 15:04:52 CDT 2001
On Mon, 30 Jul 2001 18:56:42 +0200, Bjorn <bjorn at sparta.lu.se.NOSPAM> wrote:
>Actually I just checked out the wine cvs so maybe I'll have a look :)
Yes, but in your case it's more complicated than that...
>trace:ddraw:DDRAW_Create ((null),0x6f8f1ba4,(nil))
Here the application requests DDraw.
>trace:ddraw:Main_DirectDraw_CreatePalette(0x403d8378)->(00000004,0x6f8f1788,0x6f8f1bc4,(nil))
And here the game asks for a palette to be created... The problem comes from
the fact that DGA is NOT yet initialized (it will be at the call to
SetDisplayMode).
So now there are two options :
- initialize DGA at DDraw creation... The problem comes from the fact that
will X like a palette to be created when we are still in 32 or 16 bpp
mode ?
- NOT create the X palette corresponding to the DDraw palette on the
CreatePalette call. After I see two options :
- create the palette when entering DGA
- create the palette when it will be 'attached' to a surface (at this
point in time, we are sure that the call to SetDisplayMode will have
been done).
As I am not really familiar with this new DDraw code and that my hacking
time is now less and less on Wine, I think this one is for Ove to fix :-)
BTW, did you test with WineX's server ? They are the guys that coded this
new version of DDraw in Wine :-)
Lionel
--
Lionel Ulmer - http://www.bbrox.org/
More information about the wine-users
mailing list