[Bug 17233] Zanzarah game opens a black fullscreen window and then crashes

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Feb 23 07:40:54 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=17233

hidefromkgb at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hidefromkgb at gmail.com

--- Comment #11 from hidefromkgb at gmail.com ---
Gentlemen, I seem to have discovered the problem`s root.

In short, the game does not display anything because it doesn`t know how.
It uses IDirectDraw7::EnumSurfaces() to find a pixel format of the primary
video device, but in WINE this method is just a stub, and it does not return
any actual formats.

As a quick and dirty workaround, I propose to change the code that requires
EnumSurfaces to a direct call of its callback (EnumSurfacesCallback7), where
lpDDSurface is NULL, lpContext is the same as passed to EnumSurfaces, and
lpDDSurfaceDesc is just a generic BGR/888 format description.

Here`s the patch I made that is described above:
www.old-games.ru/forum/attachment.php?attachmentid=23621&d=1424674826

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list