Add a help function for gdi32.
authorJames Tabor <james.tabor@reactos.org>
Mon, 27 Nov 2006 21:58:46 +0000 (21:58 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 27 Nov 2006 21:58:46 +0000 (21:58 +0000)
svn path=/trunk/; revision=24905

reactos/dll/win32/gdi32/include/gdi32p.h
reactos/dll/win32/gdi32/misc/misc.c

index a3ea09a..4d1ad7d 100644 (file)
@@ -108,6 +108,9 @@ GdiGetHandleUserData(
     PVOID *UserData
 );
 
+PLDC
+GdiGetLDC(HDC hDC);
+
 BOOL
 WINAPI
 CalculateColorTableSize(
index 9ca6185..bef5120 100644 (file)
@@ -71,6 +71,13 @@ BOOL GdiGetHandleUserData(HGDIOBJ hGdiObj, PVOID *UserData)
   return FALSE;
 }
 
+PLDC GdiGetLDC(HDC hDC)
+{
+    PDC_ATTR Dc_Attr;
+    if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr))
+      return NULL;
+    return Dc_Attr->pvLDC;  
+}
 
 /*
  * @implemented