30 RECTL OutputRect, InputRect;
38 InputRect = *SourceRect;
40 if (!
IntEngEnter(&EnterLeaveSource, psoSource, &InputRect,
TRUE, &Translate, &InputObj))
44 InputRect.
left += Translate.
x;
45 InputRect.
right += Translate.
x;
46 InputRect.
top += Translate.
y;
47 InputRect.
bottom += Translate.
y;
49 OutputRect = *DestRect;
93 if (!
IntEngEnter(&EnterLeaveDest, psoDest, &OutputRect,
FALSE, &Translate, &OutputObj))
99 OutputRect.
left = DestRect->
left + Translate.
x;
101 OutputRect.
top = DestRect->
top + Translate.
y;
106 DstHeight = OutputRect.
bottom - OutputRect.
top;
107 DstWidth = OutputRect.
right - OutputRect.
left;
108 SrcHeight = InputRect.
bottom - InputRect.
top;
109 SrcWidth = InputRect.
right - InputRect.
left;
110 switch (ClippingType)
115 OutputObj, InputObj, &OutputRect, &InputRect, ColorTranslation,
iTransColor);
120 RECTL ClipRect, CombinedRect;
121 RECTL InputToCombinedRect;
129 InputToCombinedRect.
top = InputRect.
top + (CombinedRect.
top - OutputRect.
top) * SrcHeight / DstHeight;
130 InputToCombinedRect.
bottom = InputRect.
top + (CombinedRect.
bottom - OutputRect.
top) * SrcHeight / DstHeight;
131 InputToCombinedRect.
left = InputRect.
left + (CombinedRect.
left - OutputRect.
left) * SrcWidth / DstWidth;
132 InputToCombinedRect.
right = InputRect.
left + (CombinedRect.
right - OutputRect.
left) * SrcWidth / DstWidth;
134 OutputObj, InputObj, &CombinedRect, &InputToCombinedRect, ColorTranslation,
iTransColor);
144 if (OutputObj == InputObj)
146 if (OutputRect.
top < InputRect.
top)
164 for (
i = 0;
i < RectEnum.c;
i++)
166 RECTL ClipRect, CombinedRect;
167 RECTL InputToCombinedRect;
169 ClipRect.
left = RectEnum.arcl[
i].left + Translate.
x;
170 ClipRect.
right = RectEnum.arcl[
i].right + Translate.
x;
171 ClipRect.
top = RectEnum.arcl[
i].top + Translate.
y;
172 ClipRect.
bottom = RectEnum.arcl[
i].bottom + Translate.
y;
175 InputToCombinedRect.
top = InputRect.
top + (CombinedRect.
top - OutputRect.
top) * SrcHeight / DstHeight;
176 InputToCombinedRect.
bottom = InputRect.
top + (CombinedRect.
bottom - OutputRect.
top) * SrcHeight / DstHeight;
177 InputToCombinedRect.
left = InputRect.
left + (CombinedRect.
left - OutputRect.
left) * SrcWidth / DstWidth;
178 InputToCombinedRect.
right = InputRect.
left + (CombinedRect.
right - OutputRect.
left) * SrcWidth / DstWidth;
181 OutputObj, InputObj, &CombinedRect, &InputToCombinedRect, ColorTranslation,
iTransColor);
189 while (EnumMore && Ret);
218 RECTL OutputRect, InputClippedRect;
222 LONG InputClWidth, InputClHeight, InputWidth, InputHeight;
237 InputClippedRect = *DestRect;
238 if (InputClippedRect.
right < InputClippedRect.
left)
243 if (InputClippedRect.
bottom < InputClippedRect.
top)
249 InputRect = *SourceRect;
259 InputClWidth = InputClippedRect.
right - InputClippedRect.
left;
260 InputClHeight = InputClippedRect.
bottom - InputClippedRect.
top;
261 InputWidth = InputRect.
right - InputRect.
left;
262 InputHeight = InputRect.
bottom - InputRect.
top;
264 InputRect.
left += (InputWidth * (OutputRect.
left - InputClippedRect.
left)) / InputClWidth;
265 InputRect.
right -= (InputWidth * (InputClippedRect.
right - OutputRect.
right)) / InputClWidth;
266 InputRect.
top += (InputHeight * (OutputRect.
top - InputClippedRect.
top)) / InputClHeight;
267 InputRect.
bottom -= (InputHeight * (InputClippedRect.
bottom - OutputRect.
bottom)) / InputClHeight;
271 OutputRect = InputClippedRect;
BOOL APIENTRY IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave, SURFOBJ *psoDest, RECTL *DestRect, BOOL ReadOnly, POINTL *Translate, SURFOBJ **ppsoOutput)
BOOL APIENTRY IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
BOOL APIENTRY EngTransparentBlt(SURFOBJ *psoDest, SURFOBJ *psoSource, CLIPOBJ *Clip, XLATEOBJ *ColorTranslation, PRECTL DestRect, PRECTL SourceRect, ULONG iTransColor, ULONG Reserved)
BOOL FASTCALL IntEngTransparentBlt(SURFOBJ *psoDest, SURFOBJ *psoSource, CLIPOBJ *Clip, XLATEOBJ *ColorTranslation, PRECTL DestRect, PRECTL SourceRect, ULONG iTransColor, ULONG Reserved)
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 const GLfloat const GLdouble const GLfloat GLint i
PFN_DIB_TransparentBlt DIB_TransparentBlt
#define CONTAINING_RECORD(address, type, field)
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
#define GDIDEVFUNCS(SurfObj)
BOOL FASTCALL RECTL_bIntersectRect(_Out_ RECTL *prclDst, _In_ const RECTL *prcl1, _In_ const RECTL *prcl2)
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_ RECTL _In_ ULONG iTransColor
#define HOOK_TRANSPARENTBLT
ENGAPI BOOL APIENTRY CLIPOBJ_bEnum(_In_ CLIPOBJ *pco, _In_ ULONG cj, _Out_bytecap_(cj) ULONG *pul)
ENGAPI ULONG APIENTRY CLIPOBJ_cEnumStart(_Inout_ CLIPOBJ *pco, _In_ BOOL bAll, _In_ ULONG iType, _In_ ULONG iDirection, _In_ ULONG cLimit)
_Reserved_ PVOID Reserved