Implement GetETM.
authorJames Tabor <james.tabor@reactos.org>
Fri, 28 Dec 2007 20:06:09 +0000 (20:06 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 28 Dec 2007 20:06:09 +0000 (20:06 +0000)
svn path=/trunk/; revision=31480

reactos/dll/win32/gdi32/misc/stubs.c

index 20aea78..a6fc6d6 100644 (file)
@@ -1582,19 +1582,20 @@ GdiRealizationInfo(HDC hdc,
     return 0;
 }
 
-
-
 /*
- * @unimplemented
+ * @implemented
  */
 BOOL
 STDCALL
 GetETM(HDC hdc,
        EXTTEXTMETRIC *petm)
 {
-    UNIMPLEMENTED;
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+  BOOL Ret = NtGdiGetETM(hdc, petm);
+  if ( Ret )
+  {
+     if ( petm ) petm->emKernPairs = GetKerningPairsA(hdc, 0, 0);
+  }
+  return Ret;
 }
 
 /*