[Bug 24308] New: Fullscreen fails for MechWarrior 4 games (Only one D3D device per DirectDraw object)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 8 07:47:53 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=24308

           Summary: Fullscreen fails for MechWarrior 4 games (Only one D3D
                    device per DirectDraw object)
           Product: Wine
           Version: 1.3.2
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: directx-ddraw
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: georg298 at gmx.de


For all MechWarrior 4 games, fullscreen fails with message

fixme:ddraw:d3d7_CreateDevice Only one Direct3D device per DirectDraw object
supported.

Obviously, the game falls back to window'ed mode, as
static HRESULT WINAPI d3d7_CreateDevice(IDirect3D7 *iface, REFCLSID riid,
        IDirectDrawSurface7 *surface, IDirect3DDevice7 **device)
returns
DDERR_INVALIDPARAMS

changing this behaviour (returning D3D_OK instead):
    if (ddraw->d3ddevice)
    {
        FIXME("Only one Direct3D device per DirectDraw object supported.\n");
        LeaveCriticalSection(&ddraw_cs);
        return D3D_OK;
//         return DDERR_INVALIDPARAMS;
    }

makes fullscreen work for these games.
Probably it's not "legal" to return D3D_OK in this case, but maybe there is a
real solution for this problem?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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