Nikolay Sivov : gdiplus: Make GdipInvertMatrix test pass on native switching to matrix with determinant 16 .

Alexandre Julliard julliard at winehq.org
Thu Jul 17 06:37:47 CDT 2008


Module: wine
Branch: master
Commit: 3a1e2a304e509ea5d96712640937ee074b3258bd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a1e2a304e509ea5d96712640937ee074b3258bd

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun Jul 13 11:52:29 2008 +0400

gdiplus: Make GdipInvertMatrix test pass on native switching to matrix with determinant 16.

---

 dlls/gdiplus/tests/matrix.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/gdiplus/tests/matrix.c b/dlls/gdiplus/tests/matrix.c
index 16c1517..16ce85a 100644
--- a/dlls/gdiplus/tests/matrix.c
+++ b/dlls/gdiplus/tests/matrix.c
@@ -124,7 +124,7 @@ static void test_invert(void)
     GpStatus status;
     GpMatrix *matrix = NULL;
     GpMatrix *inverted = NULL;
-    BOOL equal;
+    BOOL equal = FALSE;
 
     /* NULL */
     status = GdipInvertMatrix(NULL);
@@ -137,11 +137,10 @@ static void test_invert(void)
     GdipDeleteMatrix(matrix);
 
     /* invertible */
-    GdipCreateMatrix2(1.0, 2.0, 4.0, -1.0, 6.0, 3.0, &matrix);
+    GdipCreateMatrix2(3.0, -2.0, 5.0, 2.0, 6.0, 3.0, &matrix);
     status = GdipInvertMatrix(matrix);
     expect(Ok, status);
-
-    GdipCreateMatrix2(1.0/9.0, 2.0/9.0, 4.0/9.0, -1.0/9.0, -2.0, -1.0, &inverted);
+    GdipCreateMatrix2(2.0/16.0, 2.0/16.0, -5.0/16.0, 3.0/16.0, 3.0/16.0, -21.0/16.0, &inverted);
     GdipIsMatrixEqual(matrix, inverted, &equal);
     expect(TRUE, equal);
 




More information about the wine-cvs mailing list