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);
148 iStyle = (iStyle + 1) % cStyles;
149 lStyleMax =
y + pulStyles[iStyle];
163 iStyle = (iStyle + 1) % cStyles;
164 lStyleMax =
x + pulStyles[iStyle];
192 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
200 ClipRect = RectEnum.
arcl;
201 delta =
max(deltax, deltay);
204 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
206 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
207 && (y < ClipRect->
top
211 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
215 ClipRect = RectEnum.arcl;
222 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
224 if ((ClipRect->
left <=
x && y < ClipRect->
bottom) && ((iStyle & 1) == 0))
227 OutputObj,
x,
y, Pixel);
234 iStyle = (iStyle - 1) % cStyles;
235 lStyleMax =
y - pulStyles[iStyle];
249 iStyle = (iStyle + 1) % cStyles;
250 lStyleMax =
x + pulStyles[iStyle];
278 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
286 ClipRect = RectEnum.
arcl;
287 delta =
max(deltax, deltay);
290 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
292 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
294 || (ClipRect->
top <=
y && x < ClipRect->
left)))
297 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
301 ClipRect = RectEnum.arcl;
308 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
310 if ((x < ClipRect->
right && ClipRect->
top <=
y) && ((iStyle & 1) == 0))
313 OutputObj,
x,
y, Pixel);
320 iStyle = (iStyle + 1) % cStyles;
321 lStyleMax =
y + pulStyles[iStyle];
335 iStyle = (iStyle - 1) % cStyles;
336 lStyleMax =
x - pulStyles[iStyle];
364 ULONG iStyle, cStyles = pebo->
pbrush->dwStyleCount;
372 ClipRect = RectEnum.
arcl;
373 delta =
max(deltax, deltay);
376 while (
i < delta && (ClipRect < RectEnum.
arcl + RectEnum.
c || EnumMore))
378 while ((ClipRect < RectEnum.
arcl + RectEnum.
c
379 && (y < ClipRect->
top
380 || (y < ClipRect->
bottom && x < ClipRect->
left)))
383 if (RectEnum.
arcl + RectEnum.
c <= ClipRect)
387 ClipRect = RectEnum.arcl;
394 if (ClipRect < RectEnum.
arcl + RectEnum.
c)
396 if ((x < ClipRect->
right && y < ClipRect->
bottom) && ((iStyle & 1) == 0))
399 OutputObj,
x,
y, Pixel);
406 iStyle = (iStyle - 1) % cStyles;
407 lStyleMax =
y - pulStyles[iStyle];
421 iStyle = (iStyle - 1) % cStyles;
422 lStyleMax =
x - pulStyles[iStyle];
451 LONG x,
y, deltax, deltay, xchange, ychange, hx, vy;
485 if (!
IntEngEnter(&EnterLeave, DestObj, &DestRect,
FALSE, &Translate, &OutputObj))
510 if (0 == deltax && 0 == deltay)
539 if ((
y1 ==
y2) && (cStyles == 0))
545 for (
i = 0;
i < RectEnum.c && RectEnum.arcl[
i].top + Translate.
y <=
y1;
i++)
547 if (
y1 < RectEnum.arcl[
i].bottom + Translate.
y &&
548 RectEnum.arcl[
i].left + Translate.
x <= hx + deltax &&
549 hx < RectEnum.arcl[
i].right + Translate.
x &&
550 max(hx, RectEnum.arcl[
i].left + Translate.
x) <
551 min(hx + deltax, RectEnum.arcl[
i].right + Translate.
x))
555 max(hx, RectEnum.arcl[
i].left + Translate.
x),
556 min(hx + deltax, RectEnum.arcl[
i].right + Translate.
x),
563 else if ((
x1 ==
x2) && (cStyles == 0))
569 for (
i = 0;
i < RectEnum.c;
i++)
571 if (RectEnum.arcl[
i].left + Translate.
x <=
x1 &&
572 x1 < RectEnum.arcl[
i].right + Translate.
x &&
573 RectEnum.arcl[
i].top + Translate.
y <= vy + deltay &&
574 vy < RectEnum.arcl[
i].bottom + Translate.
y)
578 max(vy, RectEnum.arcl[
i].top + Translate.
y),
579 min(vy + deltay, RectEnum.arcl[
i].bottom + Translate.
y),
592 NWtoSE(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
596 SWtoNE(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
603 NEtoSW(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
607 SEtoNW(OutputObj, Clip,
pbo,
x,
y, deltax, deltay, &Translate);
667 if ((
x1 <
b.left &&
x2 <
b.left) || (
b.right <=
x1 &&
b.right <=
x2) ||
668 (
y1 <
b.top &&
y2 <
b.top) || (
b.bottom <=
y1 &&
b.bottom <=
y2))
677 if (
b.left ==
b.right)
b.right++;
678 if (
b.top ==
b.bottom)
b.bottom++;
715 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)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
ENGAPI BOOL APIENTRY CLIPOBJ_bEnum(_In_ CLIPOBJ *pco, _In_ ULONG cj, _Out_bytecap_(cj) ULONG *pul)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
ENGAPI ULONG APIENTRY CLIPOBJ_cEnumStart(_Inout_ CLIPOBJ *pco, _In_ BOOL bAll, _In_ ULONG iType, _In_ ULONG iDirection, _In_ ULONG cLimit)
_In_opt_ SURFOBJ _In_opt_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_opt_ POINTL _In_opt_ POINTL _In_opt_ BRUSHOBJ * pbo