Get rid of W->A calls: GetKerningPairs

Stefan Leichter Stefan.Leichter at camLine.com
Sat Apr 26 09:32:46 CDT 2003


Changelog
------------
        moved (stub) implementation of GetKerningPairs from ascii to unicode

-------------- next part --------------
--- ../wine/objects/font.c	Thu Feb 27 22:09:45 2003
+++ objects/font.c	Sat Apr 26 16:23:27 2003
@@ -1710,13 +1710,10 @@
 /*************************************************************************
  *             GetKerningPairsA   (GDI32.@)
  */
-DWORD WINAPI GetKerningPairsA( HDC hDC, DWORD cPairs, LPKERNINGPAIR lpKerningPairs )
+DWORD WINAPI GetKerningPairsA( HDC hDC, DWORD cPairs,
+                               LPKERNINGPAIR lpKerningPairs )
 {
-    int i;
-    FIXME("(%p,%ld,%p): almost empty stub!\n", hDC, cPairs, lpKerningPairs);
-    for (i = 0; i < cPairs; i++)
-        lpKerningPairs[i].iKernAmount = 0;
-    return 0;
+    return GetKerningPairsW( hDC, cPairs, lpKerningPairs );
 }
 
 
@@ -1726,7 +1723,11 @@
 DWORD WINAPI GetKerningPairsW( HDC hDC, DWORD cPairs,
                                  LPKERNINGPAIR lpKerningPairs )
 {
-    return GetKerningPairsA( hDC, cPairs, lpKerningPairs );
+    int i;
+    FIXME("(%p,%ld,%p): almost empty stub!\n", hDC, cPairs, lpKerningPairs);
+    for (i = 0; i < cPairs; i++)
+        lpKerningPairs[i].iKernAmount = 0;
+    return 0;
 }
 
 /*************************************************************************


More information about the wine-patches mailing list