Author: jimtabor
Date: Fri Nov 6 13:34:58 2015
New Revision: 69819
URL:
http://svn.reactos.org/svn/reactos?rev=69819&view=rev
Log:
[NtGdi]
- Add function for NtUser.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dc.h
trunk/reactos/win32ss/gdi/ntgdi/dcutil.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dc.h?rev…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] Fri Nov 6 13:34:58 2015
@@ -179,6 +179,7 @@
int FASTCALL GreGetBkMode(HDC);
int FASTCALL GreGetMapMode(HDC);
COLORREF FASTCALL GreGetTextColor(HDC);
+COLORREF FASTCALL GreGetBkColor(HDC);
COLORREF FASTCALL IntSetDCBrushColor(HDC,COLORREF);
COLORREF FASTCALL IntSetDCPenColor(HDC,COLORREF);
int FASTCALL GreGetGraphicsMode(HDC);
Modified: trunk/reactos/win32ss/gdi/ntgdi/dcutil.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dcutil.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dcutil.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dcutil.c [iso-8859-1] Fri Nov 6 13:34:58 2015
@@ -44,6 +44,21 @@
lBkMode = dc->pdcattr->lBkMode;
DC_UnlockDc(dc);
return lBkMode;
+}
+
+COLORREF FASTCALL
+GreGetBkColor(HDC hdc)
+{
+ PDC dc;
+ COLORREF crBk;
+ if (!(dc = DC_LockDc(hdc)))
+ {
+ EngSetLastError(ERROR_INVALID_HANDLE);
+ return CLR_INVALID;
+ }
+ crBk = dc->pdcattr->ulBackgroundClr;
+ DC_UnlockDc(dc);
+ return crBk;
}
int FASTCALL