44 lBkMode =
dc->pdcattr->lBkMode;
59 crBk =
dc->pdcattr->ulBackgroundClr;
74 iMapMode =
dc->pdcattr->iMapMode;
83 ULONG ulForegroundClr;
89 ulForegroundClr =
dc->pdcattr->ulForegroundClr;
91 return ulForegroundClr;
107 pdcattr =
dc->pdcattr;
135 pdcattr =
dc->pdcattr;
158 pdcattr =
dc->pdcattr;
185 pdcattr = pdc->pdcattr;
217 OldColor = (
COLORREF)
dc->pdcattr->ulBrushClr;
218 dc->pdcattr->ulBrushClr = (
ULONG) crColor;
220 if (
dc->pdcattr->crBrushClr != crColor )
223 dc->pdcattr->crBrushClr = crColor;
246 *
pptOut = pdc->pdcattr->ptlBrushOrigin;
249 pdc->pdcattr->ptlBrushOrigin.x =
x;
250 pdc->pdcattr->ptlBrushOrigin.y =
y;
270 dc->pdcattr->ulPenClr = (
ULONG)crColor;
272 if (
dc->pdcattr->crPenClr != crColor)
275 dc->pdcattr->crPenClr = crColor;
292 pdcattr = pdc->pdcattr;
315 GraphicsMode =
dc->pdcattr->iGraphicsMode;
338IntIsPrimarySurface(
SURFOBJ *SurfObj)
340 if (PrimarySurface.pSurface ==
NULL)
344 return SurfObj->
hsurf == PrimarySurface.pSurface;
354 RECTL rclWnd, rclClip;
360 rclWnd.
right = pdc->dclevel.sizl.cx;
361 rclWnd.
bottom = pdc->dclevel.sizl.cy;
370 rclClip.
left += pdc->ppdev->ptlOrigion.x;
371 rclClip.
top += pdc->ppdev->ptlOrigion.y;
372 rclClip.
right += pdc->ppdev->ptlOrigion.x;
373 rclClip.
bottom += pdc->ppdev->ptlOrigion.y;
399 pdc->ptlDCOrig.x = 0;
400 pdc->ptlDCOrig.y = 0;
401 pdc->erclWindow = rclWnd;
402 pdc->erclClip = rclClip;
404 pdc->ptlFillOrigin = pdc->dcattr.ptlBrushOrigin;
465 DWORD SafeResult = 0;
480 pdcattr = pdc->pdcattr;
496 SafeResult = pdcattr->
cBreak;
507 SafeResult = pdc->dclevel.lSaveDepth;
515 SafeResult = pdc->dctype;
559NtGdiGetAndSetDCDword(
569 DWORD SafeResult = 0;
584 pdcattr = pdc->pdcattr;
590 pdc->fs &= ~DC_EPSPRINTINGESCAPE;
594 SafeResult = pdc->ulCopyCount;
595 pdc->ulCopyCount =
dwIn;
644 pdc->dclevel.flPath &= ~DCPATH_CLOCKWISE;
655 pdc->dclevel.flPath &= ~DCPATH_CLOCKWISE;
722 rc = pdc->erclBoundsApp;
747 DPRINT(
"rc1 l %d t %d\n",rc.left,rc.top);
748 DPRINT(
" r %d b %d\n",rc.right,rc.bottom);
752 rc = pdc->erclBounds;
772 pdc->erclBoundsApp.left = pdc->erclBoundsApp.top =
INT_MAX;
773 pdc->erclBoundsApp.right = pdc->erclBoundsApp.bottom =
INT_MIN;
777 pdc->erclBounds.left = pdc->erclBounds.top =
INT_MAX;
778 pdc->erclBounds.right = pdc->erclBounds.bottom =
INT_MIN;
813 pdc->erclBoundsApp.left = pdc->erclBoundsApp.top =
INT_MAX;
814 pdc->erclBoundsApp.right = pdc->erclBoundsApp.bottom =
INT_MIN;
818 pdc->erclBounds.left = pdc->erclBounds.top =
INT_MAX;
819 pdc->erclBounds.right = pdc->erclBounds.bottom =
INT_MIN;
859 pdc->fs &= ~DC_ACCUM_APP;
861 pdc->fs &= ~DC_ACCUM_WMGR;
877 psurfDC = pdc->dclevel.pSurface;
884 switch (crColor >> 24)
890 index = crColor & 0xFFFFFF;
891 ppalDC = pdc->dclevel.ppal;
903 ppalDC = pdc->dclevel.ppal;
912 crColor = crColor & 0x00FFFFFF;
923 else index = crColor & 0xFFFFFF;
927 DPRINT(
"Unsupported color type %u passed\n", crColor >> 24);
VOID FASTCALL CLIPPING_UpdateGCRegion(PDC pDC)
VOID FASTCALL IntGdiReleaseRaoRgn(PDC pDC)
static BOOLEAN IntDPtoLP(DC *pdc, PPOINTL ppt, UINT count)
static BOOLEAN IntLPtoDP(DC *pdc, PPOINTL ppt, UINT count)
VOID FASTCALL DC_vUpdateLineBrush(PDC pdc)
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
VOID FASTCALL DC_vUpdateTextBrush(PDC pdc)
_Notnull_ PSURFACE psurfDefaultBitmap
VOID NTAPI DC_vSetBrushOrigin(PDC pdc, LONG x, LONG y)
VOID FASTCALL DC_vUpdateFillBrush(PDC pdc)
FORCEINLINE PDC DC_LockDc(HDC hdc)
COLORREF FASTCALL IntSetDCPenColor(HDC hdc, COLORREF crColor)
DWORD APIENTRY NtGdiSetBoundsRect(IN HDC hdc, IN LPRECT prc, IN DWORD flags)
BOOL FASTCALL GreDPtoLP(HDC hdc, LPPOINT lpPoints, INT nCount)
BOOL FASTCALL GreSetBrushOrg(HDC hdc, INT x, INT y, LPPOINT pptOut)
BOOL APIENTRY NtGdiGetDCDword(HDC hDC, UINT u, DWORD *Result)
WORD APIENTRY IntGdiSetHookFlags(HDC hDC, WORD Flags)
VOID FASTCALL IntUpdateBoundsRect(PDC pdc, PRECTL pRect)
int FASTCALL GreGetMapMode(HDC hdc)
BOOL FASTCALL GreLPtoDP(HDC hdc, LPPOINT lpPoints, INT nCount)
INT FASTCALL IntGdiSetBkMode(HDC hDC, INT Mode)
COLORREF FASTCALL IntGdiSetTextColor(HDC hDC, COLORREF color)
DWORD APIENTRY NtGdiGetBoundsRect(IN HDC hdc, OUT LPRECT prc, IN DWORD flags)
COLORREF FASTCALL IntSetDCBrushColor(HDC hdc, COLORREF crColor)
int FASTCALL GreGetGraphicsMode(HDC hdc)
BOOL APIENTRY NtGdiCancelDC(HDC hDC)
UINT FASTCALL IntGdiSetTextAlign(HDC hDC, UINT Mode)
BOOL FASTCALL IntSetDefaultRegion(PDC pdc)
VOID FASTCALL DCU_SetDcUndeletable(HDC hDC)
COLORREF FASTCALL GreGetBkColor(HDC hdc)
COLORREF FASTCALL IntGdiSetBkColor(HDC hDC, COLORREF color)
int FASTCALL GreSetStretchBltMode(HDC hDC, int iStretchMode)
ULONG TranslateCOLORREF(PDC pdc, COLORREF crColor)
COLORREF FASTCALL GreGetTextColor(HDC hdc)
int FASTCALL GreGetBkMode(HDC hdc)
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
#define GdiGetEMFRestorDc
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
#define DCHF_INVALIDATEVISRGN
#define DCHF_VALIDATEVISRGN
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
#define EXCEPTION_EXECUTE_HANDLER
int APIENTRY IntGdiSetMapMode(PDC dc, int MapMode)
_In_ UINT _Out_ PPOINTL pptOut
_In_ UINT _In_ DWORD dwIn
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiSelectBrush(_In_ HDC hdc, _In_ HBRUSH hbrush)
_In_ UINT _In_ DWORD _Out_ DWORD * pdwResult
@ GdiGetSetEPSPrintingEscape
@ GdiGetSetMapperFlagsInternal
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
struct _PALETTE *const ppal
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
DWORD FASTCALL IntGetFontLanguageInfo(PDC Dc)
ULONG NTAPI PALETTE_ulGetNearestIndex(PALETTE *ppal, ULONG ulColor)
FORCEINLINE ULONG PALETTE_ulGetRGBColorFromIndex(PPALETTE ppal, ULONG ulIndex)
VOID FASTCALL RECTL_vMakeWellOrdered(_Inout_ RECTL *prcl)
BOOL FASTCALL RECTL_bUnionRect(_Out_ RECTL *prclDst, _In_ const RECTL *prcl1, _In_ const RECTL *prcl2)
FORCEINLINE BOOL RECTL_bIsEmptyRect(_In_ const RECTL *prcl)
VOID FASTCALL REGION_SetRectRgn(PREGION rgn, INT LeftRect, INT TopRect, INT RightRect, INT BottomRect)
INT FASTCALL REGION_GetRgnBox(PREGION Rgn, PRECTL pRect)
PREGION FASTCALL IntSysCreateRectpRgn(INT LeftRect, INT TopRect, INT RightRect, INT BottomRect)
ENGAPI ULONG APIENTRY XLATEOBJ_iXlate(_In_ XLATEOBJ *pxlo, _In_ ULONG iColor)
_In_ DD_SURFACE_LOCAL * pSurface
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
#define AD_COUNTERCLOCKWISE
#define MAXSTRETCHBLTMODE
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_Must_inspect_result_ _In_ ULONG Flags
VOID NTAPI EXLATEOBJ_vInitialize(_Out_ PEXLATEOBJ pexlo, _In_opt_ PALETTE *ppalSrc, _In_opt_ PALETTE *ppalDst, _In_ COLORREF crSrcBackColor, _In_ COLORREF crDstBackColor, _In_ COLORREF crDstForeColor)
VOID NTAPI EXLATEOBJ_vCleanup(_Inout_ PEXLATEOBJ pexlo)