Author: jimtabor
Date: Tue Nov 28 00:58:46 2006
New Revision: 24905
URL:
http://svn.reactos.org/svn/reactos?rev=24905&view=rev
Log:
Add a help function for gdi32.
Modified:
trunk/reactos/dll/win32/gdi32/include/gdi32p.h
trunk/reactos/dll/win32/gdi32/misc/misc.c
Modified: trunk/reactos/dll/win32/gdi32/include/gdi32p.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/include/gd…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/include/gdi32p.h (original)
+++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h Tue Nov 28 00:58:46 2006
@@ -108,6 +108,9 @@
PVOID *UserData
);
+PLDC
+GdiGetLDC(HDC hDC);
+
BOOL
WINAPI
CalculateColorTableSize(
Modified: trunk/reactos/dll/win32/gdi32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/misc.…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/misc.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/misc.c Tue Nov 28 00:58:46 2006
@@ -71,6 +71,13 @@
return FALSE;
}
+PLDC GdiGetLDC(HDC hDC)
+{
+ PDC_ATTR Dc_Attr;
+ if (!GdiGetHandleUserData((HGDIOBJ) hDC, (PVOID) &Dc_Attr))
+ return NULL;
+ return Dc_Attr->pvLDC;
+}
/*
* @implemented