125 for(
a = 0;
a <=
b;
a++)
127 (
y1 * (
b -
a) +
y2 *
a) /
b - radius + 1, (
x1 * (
b -
a) +
x2 *
a) /
b + radius + 1,
128 (
y1 * (
b -
a) +
y2 *
a) /
b + radius + 1);
139 for(
a = 0;
a <=
b;
a++)
140 for(
y = (
y1 * (
b -
a) +
y2 *
a) /
b - radius + 1;
141 y < (
y1 * (
b -
a) +
y2 *
a) /
b + radius + 1;
y++)
142 for(
x = (
x1 * (
b -
a) +
x2 *
a) /
b - radius + 1;
143 x < (
x1 * (
b -
a) +
x2 *
a) /
b + radius + 1;
x++)
153 for(
b = -
r;
b <=
r;
b++)
154 for(
a = -
r;
a <=
r;
a++)
155 if ((
a *
a +
b *
b <=
r *
r) && (
rand() % 4 == 0))
169 for(
a = 0;
a <=
b;
a++)
174 for(
a = 0;
a <=
b;
a++)
184 for(
a = 0;
a <=
b;
a++)
189 for(
a = 0;
a <=
b;
a++)
194 for(
a = 0;
a <=
b;
a++)
205 POINT offsTop[] = {{4, -3}, {2, -2}, {0, 0},
206 {-3, -3}, {-2, -2}, {-1, 0}};
207 POINT offsBtm[] = {{-3, 4}, {-2, 2}, {-1, 1},
208 {4, 4}, {2, 2}, {0, 1}};
211 pts[0].
x =
x1 + offsTop[
idx].
x;
212 pts[0].
y =
y1 + offsTop[
idx].
y;
213 pts[1].
x =
x1 + offsBtm[
idx].
x;
214 pts[1].
y =
y1 + offsBtm[
idx].
y;
215 pts[2].
x =
x2 + offsBtm[
idx].
x;
216 pts[2].
y =
y2 + offsBtm[
idx].
y;
217 pts[3].
x =
x2 + offsTop[
idx].
x;
218 pts[3].
y =
y2 + offsTop[
idx].
y;
332 BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, 0, 0,
SRCCOPY);
334 BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, xMask, yMask,
SRCAND);
335 MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight,
hdcSrc, nXSrc, nYSrc, hTempMask, xMask, yMask, dwRop);
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
void RectSel(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2)
void Bezier(HDC hdc, POINT p1, POINT p2, POINT p3, POINT p4, COLORREF color, int thickness)
BOOL ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, HBITMAP hbmMask, int xMask, int yMask, DWORD dwRop, COLORREF keyColor)
void SelectionFrame(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF system_selection_color)
void Ellp(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
void Poly(HDC hdc, POINT *lpPoints, int nCount, COLORREF fg, COLORREF bg, int thickness, int style, BOOL closed, BOOL inverted)
void RRect(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
void Replace(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, LONG radius)
void Erase(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, LONG radius)
void Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
_Check_return_ int __cdecl rand(void)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
HBRUSH WINAPI CreateBrushIndirect(_In_ const LOGBRUSH *plb)
BOOL WINAPI PolyBezier(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ DWORD cpt)
BOOL WINAPI Polyline(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ int cpt)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
int WINAPI IntersectClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL WINAPI MaskBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ HBITMAP, _In_ int, _In_ int, _In_ DWORD)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI RestoreDC(_In_ HDC, _In_ int)
COLORREF WINAPI GetBkColor(_In_ HDC)
int WINAPI GetROP2(_In_ HDC)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
int WINAPI SetROP2(_In_ HDC, _In_ int)
BOOL WINAPI RoundRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL WINAPI ExtFloodFill(_In_ HDC, _In_ int, _In_ int, _In_ COLORREF, _In_ UINT)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
int WINAPI SaveDC(_In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)