[PATCH 5/5] d2d1: Fix a typo in the determinant calculation in d2d_d3d_render_target_FillRectangle().
Henri Verbeet
hverbeet at codeweavers.com
Tue Mar 31 03:25:00 CDT 2015
---
dlls/d2d1/render_target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d2d1/render_target.c b/dlls/d2d1/render_target.c
index c078989..fe7b947 100644
--- a/dlls/d2d1/render_target.c
+++ b/dlls/d2d1/render_target.c
@@ -617,7 +617,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillRectangle(ID2D1RenderTar
/* Invert the matrix. (Because the matrix is applied to the sampling
* coordinates. I.e., to scale the bitmap by 2 we need to divide the
* coordinates by 2.) */
- d = transform._11 * transform._22 - transform._21 * transform._22;
+ d = transform._11 * transform._22 - transform._21 * transform._12;
if (d != 0.0f)
{
transform_inverse._11 = transform._22 / d;
--
1.7.10.4
More information about the wine-patches
mailing list