[Bug 3653] New: SplinterCell Demo:fixme:d3d_surface: Unsupported Format 22 in locking func

Wine Bugs wine-bugs at winehq.org
Mon Oct 24 16:51:36 CDT 2005


           Summary: SplinterCell Demo:fixme:d3d_surface: Unsupported Format
                    22 in locking func
           Product: Wine
           Version: CVS
          Platform: Other
               URL: http://downloads.gamezone.com/demos/d7133.htm
        OS/Version: Linux
            Status: NEW
          Keywords: download
          Severity: normal
          Priority: P2
         Component: wine-directx
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: xerox_xerox2000 at yahoo.co.uk

Ran with native msvcrt (see bug 3652) it spits out a million of these lines, and
the screen is black:

fixme:d3d_surface:IDirect3DSurface8Impl_UnlockRect Unsupported Format 22 in
locking func

I added these lines just before the fixme in dlls/d3d8/surface.c 

case 22:// just copied this from case D3DFMT_A8R8G8B8 above 
	    glPixelStorei(GL_PACK_SWAP_BYTES, TRUE);
	    glDrawPixels(This->lockedRect.right - This->lockedRect.left,
(This->lockedRect.bottom - This->lockedRect.top)-1,
			 GL_BGRA, GL_UNSIGNED_BYTE, This->allocatedMemory);
	    glPixelStorei(GL_PACK_SWAP_BYTES, prev_store);
Now i can actually see the intro. I know this is just an awfull an incorrect
hack, maybe someone who understands the code can fix this bug. The bug that
really prevents the demo from working is a sound issue, which i'll file
separately later

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the wine-bugs mailing list