Henri Verbeet : wined3d: Use the correct divider for 15-bit depth formats in IWineD3DSurfaceImpl_BltZ ().
Alexandre Julliard
julliard at winehq.org
Tue Aug 3 13:10:34 CDT 2010
Module: wine
Branch: master
Commit: 6e68dd52c4c2ece1d475f6b42f9ea27c1f76f99b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e68dd52c4c2ece1d475f6b42f9ea27c1f76f99b
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Aug 3 10:13:31 2010 +0200
wined3d: Use the correct divider for 15-bit depth formats in IWineD3DSurfaceImpl_BltZ().
---
dlls/wined3d/surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 561e9c9..c061778 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3778,7 +3778,7 @@ static HRESULT IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, const RECT *D
depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x0000ffff;
break;
case WINED3DFMT_S1_UINT_D15_UNORM:
- depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x0000fffe;
+ depth = (float) DDBltFx->u5.dwFillDepth / (float) 0x00007fff;
break;
case WINED3DFMT_D24_UNORM_S8_UINT:
case WINED3DFMT_X8D24_UNORM:
More information about the wine-cvs
mailing list