Stefan Dösinger : wined3d: Full surface DXTn copy.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 7 15:26:47 CDT 2007
Module: wine
Branch: master
Commit: c87d5352a5508649071e932186aa1c13c113cf53
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c87d5352a5508649071e932186aa1c13c113cf53
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Apr 28 14:28:55 2007 +0200
wined3d: Full surface DXTn copy.
Height * Pitch is not a valid way to calculate the surface size for
DXTn surfaces. Instead of messing with format specific formulas just
use the size stored in the destination surface.
---
dlls/wined3d/surface_gdi.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c
index ce37680..9610d42 100644
--- a/dlls/wined3d/surface_gdi.c
+++ b/dlls/wined3d/surface_gdi.c
@@ -555,8 +555,7 @@ IWineGDISurfaceImpl_Blt(IWineD3DSurface *iface,
ret = WINED3DERR_WRONGTEXTUREFORMAT;
goto release;
}
- TRACE("Fourcc->Fourcc copy)\n");
- memcpy(dlock.pBits, slock.pBits, This->currentDesc.Height * dlock.Pitch);
+ memcpy(dlock.pBits, slock.pBits, This->resource.size);
goto release;
}
More information about the wine-cvs
mailing list