http://bugs.winehq.org/show_bug.cgi?id=3653
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@winehq.org ReportedBy: xerox_xerox2000@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); vcheckGLcall("glPixelStorei"); glDrawPixels(This->lockedRect.right - This->lockedRect.left, (This->lockedRect.bottom - This->lockedRect.top)-1, GL_BGRA, GL_UNSIGNED_BYTE, This->allocatedMemory); vcheckGLcall("glDrawPixels"); glPixelStorei(GL_PACK_SWAP_BYTES, prev_store); vcheckGLcall("glPixelStorei"); } break; 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