19 if (0 != Translate->
x || 0 != Translate->
y)
21 for (CurrentRect = RectEnum->
arcl; CurrentRect < RectEnum->arcl + RectEnum->
c; CurrentRect++)
23 CurrentRect->
left += Translate->
x;
24 CurrentRect->
right += Translate->
x;
25 CurrentRect->
top += Translate->
y;
26 CurrentRect->
bottom += Translate->
y;
46 LONG diStyle, offStyle, lStyleMax;
52 offStyle = (- Translate->
x) % pebo->
pbrush->ulStyleSize;
58 offStyle = (- Translate->
y) % pebo->
pbrush->ulStyleSize;
64 for (iStyle = 0; offStyle >= pulStyles[iStyle]; iStyle++)
66 offStyle -= pulStyles[iStyle];
71 lStyleMax += pulStyles[iStyle] - offStyle;
75 lStyleMax -= offStyle + 1;
105 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
113 ClipRect = RectEnum.
arcl;
114 delta =
max(deltax, deltay);
117 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
119 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
121 || (ClipRect->
top <=
y && ClipRect->
right <=
x)))
125 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
129 ClipRect = RectEnum.arcl;
136 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
138 if ((ClipRect->
left <=
x && ClipRect->
top <=
y) && ((iStyle & 1) == 0))
141 OutputObj,
x,
y, Pixel);
149 iStyle = (iStyle + 1) % cStyles;
150 lStyleMax =
y + pulStyles[iStyle];
165 iStyle = (iStyle + 1) % cStyles;
166 lStyleMax =
x + pulStyles[iStyle];
194 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
202 ClipRect = RectEnum.
arcl;
203 delta =
max(deltax, deltay);
206 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
208 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
209 && (y < ClipRect->
top
213 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
217 ClipRect = RectEnum.arcl;
224 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
226 if ((ClipRect->
left <=
x && y < ClipRect->
bottom) && ((iStyle & 1) == 0))
229 OutputObj,
x,
y, Pixel);
237 iStyle = (iStyle - 1) % cStyles;
238 lStyleMax =
y - pulStyles[iStyle];
253 iStyle = (iStyle + 1) % cStyles;
254 lStyleMax =
x + pulStyles[iStyle];
282 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
290 ClipRect = RectEnum.
arcl;
291 delta =
max(deltax, deltay);
294 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
296 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
298 || (ClipRect->
top <=
y && x < ClipRect->
left)))
301 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
305 ClipRect = RectEnum.arcl;
312 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
314 if ((x < ClipRect->
right && ClipRect->
top <=
y) && ((iStyle & 1) == 0))
317 OutputObj,
x,
y, Pixel);
325 iStyle = (iStyle + 1) % cStyles;
326 lStyleMax =
y + pulStyles[iStyle];
341 iStyle = (iStyle - 1) % cStyles;
342 lStyleMax =
x - pulStyles[iStyle];
370 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
378 ClipRect = RectEnum.
arcl;
379 delta =
max(deltax, deltay);
382 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
384 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
385 && (y < ClipRect->
top
386 || (y < ClipRect->
bottom && x < ClipRect->
left)))
389 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
393 ClipRect = RectEnum.arcl;
400 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
402 if ((x < ClipRect->
right && y < ClipRect->
bottom) && ((iStyle & 1) == 0))
405 OutputObj,
x,
y, Pixel);
413 iStyle = (iStyle - 1) % cStyles;
414 lStyleMax =
y - pulStyles[iStyle];
429 iStyle = (iStyle - 1) % cStyles;
430 lStyleMax =
x - pulStyles[iStyle];
459 LONG x,
y, deltax, deltay, xchange, ychange, hx, vy;
493 if (!
IntEngEnter(&EnterLeave, DestObj, &DestRect,
FALSE, &Translate, &OutputObj))
518 if (0 == deltax && 0 == deltay)
547 if ((
y1 ==
y2) && (cStyles == 0))
553 for (
i = 0;
i < RectEnum.c && RectEnum.arcl[
i].top + Translate.
y <=
y1;
i++)
555 if (
y1 < RectEnum.arcl[
i].bottom + Translate.
y &&
556 RectEnum.arcl[
i].left + Translate.
x <= hx + deltax &&
557 hx < RectEnum.arcl[
i].right + Translate.
x &&
558 max(hx, RectEnum.arcl[
i].left + Translate.
x) <
559 min(hx + deltax, RectEnum.arcl[
i].right + Translate.
x))
563 max(hx, RectEnum.arcl[
i].left + Translate.
x),
564 min(hx + deltax, RectEnum.arcl[
i].right + Translate.
x),
571 else if ((
x1 ==
x2) && (cStyles == 0))
577 for (
i = 0;
i < RectEnum.c;
i++)
579 if (RectEnum.arcl[
i].left + Translate.
x <=
x1 &&
580 x1 < RectEnum.arcl[
i].right + Translate.
x &&
581 RectEnum.arcl[
i].top + Translate.
y <= vy + deltay &&
582 vy < RectEnum.arcl[
i].bottom + Translate.
y)
586 max(vy, RectEnum.arcl[
i].top + Translate.
y),
587 min(vy + deltay, RectEnum.arcl[
i].bottom + Translate.
y),
600 NWtoSE(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
604 SWtoNE(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
611 NEtoSW(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
615 SEtoNW(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
675 if ((
x1 <
b.left &&
x2 <
b.left) || (
b.right <=
x1 &&
b.right <=
x2) ||
676 (
y1 <
b.top &&
y2 <
b.top) || (
b.bottom <=
y1 &&
b.bottom <=
y2))
685 if (
b.left ==
b.right)
b.right++;
686 if (
b.top ==
b.bottom)
b.bottom++;
723 for (
i = 1;
i < dCount;
i++)
BOOL APIENTRY IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave, SURFOBJ *psoDest, RECTL *DestRect, BOOL ReadOnly, POINTL *Translate, SURFOBJ **ppsoOutput)
BOOL APIENTRY IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
void FASTCALL SWtoNE(SURFOBJ *OutputObj, CLIPOBJ *Clip, BRUSHOBJ *pbo, LONG x, LONG y, LONG deltax, LONG deltay, POINTL *Translate)
BOOL APIENTRY IntEngPolyline(SURFOBJ *psoDest, CLIPOBJ *Clip, BRUSHOBJ *pbo, CONST LPPOINT pt, LONG dCount, MIX Mix)
LONG HandleStyles(BRUSHOBJ *pbo, POINTL *Translate, LONG x, LONG y, LONG deltax, LONG deltay, LONG dx, LONG dy, PULONG piStyle)
void FASTCALL NEtoSW(SURFOBJ *OutputObj, CLIPOBJ *Clip, BRUSHOBJ *pbo, LONG x, LONG y, LONG deltax, LONG deltay, POINTL *Translate)
void FASTCALL SEtoNW(SURFOBJ *OutputObj, CLIPOBJ *Clip, BRUSHOBJ *pbo, LONG x, LONG y, LONG deltax, LONG deltay, POINTL *Translate)
void FASTCALL NWtoSE(SURFOBJ *OutputObj, CLIPOBJ *Clip, BRUSHOBJ *pbo, LONG x, LONG y, LONG deltax, LONG deltay, POINTL *Translate)
BOOL APIENTRY EngLineTo(_Inout_ SURFOBJ *DestObj, _In_ CLIPOBJ *Clip, _In_ BRUSHOBJ *pbo, _In_ LONG x1, _In_ LONG y1, _In_ LONG x2, _In_ LONG y2, _In_opt_ RECTL *RectBounds, _In_ MIX mix)
static void FASTCALL TranslateRects(RECT_ENUM *RectEnum, POINTL *Translate)
BOOL APIENTRY IntEngLineTo(SURFOBJ *psoDest, CLIPOBJ *ClipObj, BRUSHOBJ *pbo, LONG x1, LONG y1, LONG x2, LONG y2, RECTL *RectBounds, MIX Mix)
struct _EBRUSHOBJ * PEBRUSHOBJ
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble GLdouble top
GLboolean GLboolean GLboolean b
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_PutPixel DIB_PutPixel
RECTL arcl[ENUM_RECT_LIMIT]
#define CONTAINING_RECORD(address, type, field)
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
VOID FASTCALL IntEngUpdateClipRegion(XCLIPOBJ *Clip, ULONG count, const RECTL *pRect, const RECTL *rcBounds)
#define GDIDEVFUNCS(SurfObj)
ENGAPI CLIPOBJ *APIENTRY EngCreateClip(VOID)
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL _In_ MIX mix
ENGAPI VOID APIENTRY EngDeleteClip(_In_ _Post_ptr_invalid_ CLIPOBJ *pco)
ENGAPI BOOL APIENTRY CLIPOBJ_bEnum(_In_ CLIPOBJ *pco, _In_ ULONG cj, _Out_bytecap_(cj) ULONG *pul)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
ENGAPI ULONG APIENTRY CLIPOBJ_cEnumStart(_Inout_ CLIPOBJ *pco, _In_ BOOL bAll, _In_ ULONG iType, _In_ ULONG iDirection, _In_ ULONG cLimit)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
_In_opt_ SURFOBJ _In_opt_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_opt_ POINTL _In_opt_ POINTL _In_opt_ BRUSHOBJ * pbo
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2