Author: tkreuzer
Date: Sat Jan 8 12:19:23 2011
New Revision: 50321
URL:
http://svn.reactos.org/svn/reactos?rev=50321&view=rev
Log:
[GDI32]
Implement GdiGetDcAttr. Just for convenience / cleaner code.
Modified:
trunk/reactos/dll/win32/gdi32/include/gdi32p.h
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 [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h [iso-8859-1] Sat Jan 8 12:19:23 2011
@@ -379,4 +379,14 @@
return pHdr;
}
+FORCEINLINE
+PDC_ATTR
+GdiGetDcAttr(HDC hdc)
+{
+ PDC_ATTR pdcattr;
+
+ if (!GdiGetHandleUserData((HGDIOBJ)hdc, GDI_OBJECT_TYPE_DC, (PVOID*)&pdcattr))
return NULL;
+ return pdcattr;
+}
+
/* EOF */