Author: jimtabor
Date: Wed Feb 22 17:20:43 2017
New Revision: 73886
URL:
http://svn.reactos.org/svn/reactos?rev=73886&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] Wed Feb 22 17:20:43 2017
@@ -180,6 +180,7 @@
COLORREF FASTCALL IntSetDCBrushColor(HDC,COLORREF);
COLORREF FASTCALL IntSetDCPenColor(HDC,COLORREF);
int FASTCALL GreGetGraphicsMode(HDC);
+BOOL FASTCALL GreSetBrushOrg(HDC,INT,INT,LPPOINT);
INIT_FUNCTION NTSTATUS NTAPI InitDcImpl(VOID);
PPDEVOBJ FASTCALL IntEnumHDev(VOID);
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] Wed Feb 22 17:20:43 2017
@@ -220,6 +220,31 @@
}
DC_UnlockDc(dc);
return OldColor;
+}
+
+BOOL FASTCALL
+GreSetBrushOrg(
+ HDC hdc,
+ INT x,
+ INT y,
+ LPPOINT pptOut)
+{
+ PDC pdc = DC_LockDc(hdc);
+ if (pdc == NULL)
+ {
+ EngSetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
+ if (pptOut != NULL)
+ {
+ *pptOut = pdc->pdcattr->ptlBrushOrigin;
+ }
+
+ DC_vSetBrushOrigin(pdc, x, y);
+
+ DC_UnlockDc(pdc);
+ return TRUE;
}
COLORREF FASTCALL