Commit in reactos/subsys/win32k/objects on MAIN
text.c+11-111.116 -> 1.117
Pass parameters in correct order

reactos/subsys/win32k/objects
text.c 1.116 -> 1.117
diff -u -r1.116 -r1.117
--- text.c	13 Dec 2004 01:45:18 -0000	1.116
+++ text.c	17 Dec 2004 17:40:29 -0000	1.117
@@ -22,7 +22,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: text.c,v 1.116 2004/12/13 01:45:18 royce Exp $ */
+/* $Id: text.c,v 1.117 2004/12/17 17:40:29 gvg Exp $ */
 #include <w32k.h>
 
 #include <ft2build.h>
@@ -1647,11 +1647,11 @@
    IntLockFreeType;
    error = FT_Set_Pixel_Sizes(
       face,
+      TextObj->logfont.lfWidth,
       /* FIXME should set character height if neg */
       (TextObj->logfont.lfHeight < 0 ?
       - TextObj->logfont.lfHeight :
-      TextObj->logfont.lfHeight),
-      TextObj->logfont.lfWidth);
+      TextObj->logfont.lfHeight == 0 ? 11 : TextObj->logfont.lfHeight));
    IntUnLockFreeType;
    if (error)
    {
@@ -2030,11 +2030,11 @@
 
    IntLockFreeType;
    FT_Set_Pixel_Sizes(face,
+                      TextObj->logfont.lfWidth,
                       /* FIXME should set character height if neg */
                       (TextObj->logfont.lfHeight < 0 ?
                        - TextObj->logfont.lfHeight :
-                       TextObj->logfont.lfHeight),
-                      TextObj->logfont.lfWidth);
+                       TextObj->logfont.lfHeight == 0 ? 11 : TextObj->logfont.lfHeight));
 
    for (i = FirstChar; i <= LastChar; i++)
    {
@@ -2188,11 +2188,11 @@
 
   IntLockFreeType;
   error = FT_Set_Pixel_Sizes(face,
+                             TextObj->logfont.lfWidth,
                              /* FIXME should set character height if neg */
                              (TextObj->logfont.lfHeight < 0 ?
                               - TextObj->logfont.lfHeight :
-                              TextObj->logfont.lfHeight),
-                             TextObj->logfont.lfWidth);
+                              TextObj->logfont.lfHeight == 0 ? 11 : TextObj->logfont.lfHeight));
   IntUnLockFreeType;
   if (error)
     {
@@ -2543,11 +2543,11 @@
       Face = FontGDI->face;
       IntLockFreeType;
       Error = FT_Set_Pixel_Sizes(Face,
+	                         TextObj->logfont.lfWidth,
 	                         /* FIXME should set character height if neg */
-	                         (TextObj->logfont.lfHeight < 0 ?
-	                          - TextObj->logfont.lfHeight :
-	                          TextObj->logfont.lfHeight),
-	                         TextObj->logfont.lfWidth);
+                                 (TextObj->logfont.lfHeight < 0 ?
+                                  - TextObj->logfont.lfHeight :
+                                  TextObj->logfont.lfHeight == 0 ? 11 : TextObj->logfont.lfHeight));
       IntUnLockFreeType;
       if (0 != Error)
 	{
CVSspam 0.2.8