Kusanagi Kouichi : gdi32/tests: Consolidate identity matrices.

Alexandre Julliard julliard at winehq.org
Thu Feb 3 12:00:22 CST 2011


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

Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date:   Thu Feb  3 20:06:44 2011 +0900

gdi32/tests: Consolidate identity matrices.

---

 dlls/gdi32/tests/font.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 01411ff..f07a427 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -50,6 +50,7 @@ static HANDLE (WINAPI *pAddFontMemResourceEx)(PVOID, DWORD, PVOID, DWORD *);
 static BOOL  (WINAPI *pRemoveFontMemResourceEx)(HANDLE);
 
 static HMODULE hgdi32 = 0;
+static const MAT2 mat = { {0,1}, {0,0}, {0,0}, {0,1} };
 
 static void init(void)
 {
@@ -410,7 +411,6 @@ static void test_outline_font(void)
     INT width_orig, height_orig, lfWidth;
     XFORM xform;
     GLYPHMETRICS gm;
-    MAT2 mat = { {0,1}, {0,0}, {0,0}, {0,1} };
     MAT2 mat2 = { {0x8000,0}, {0,0}, {0,0}, {0x8000,0} };
     POINT pt;
     INT ret;
@@ -2175,7 +2175,6 @@ static void test_negative_width(HDC hdc, const LOGFONTA *lf)
     GLYPHMETRICS gm1, gm2;
     LOGFONTA lf2 = *lf;
     WORD idx;
-    MAT2 mat = { {0,1}, {0,0}, {0,0}, {0,1} };
 
     if(!pGetGlyphIndicesA)
         return;
@@ -3096,7 +3095,6 @@ todo_wine
 
 static void test_GetGlyphOutline(void)
 {
-    MAT2 mat = { {0,1}, {0,0}, {0,0}, {0,1} };
     HDC hdc;
     GLYPHMETRICS gm;
     LOGFONTA lf;




More information about the wine-cvs mailing list