Lines Matching refs:dst

62 	SDL_Surface *dst;  member
87 int fastPixelColorNolock(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color) in fastPixelColorNolock() argument
95 …if ((x >= clip_xmin(dst)) && (x <= clip_xmax(dst)) && (y >= clip_ymin(dst)) && (y <= clip_ymax(dst in fastPixelColorNolock()
100 bpp = dst->format->BytesPerPixel; in fastPixelColorNolock()
101 p = (Uint8 *) dst->pixels + y * dst->pitch + x * bpp; in fastPixelColorNolock()
144 int fastPixelColorNolockNoclip(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color) in fastPixelColorNolockNoclip() argument
152 bpp = dst->format->BytesPerPixel; in fastPixelColorNolockNoclip()
153 p = (Uint8 *) dst->pixels + y * dst->pitch + x * bpp; in fastPixelColorNolockNoclip()
190 int fastPixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color) in fastPixelColor() argument
197 if (SDL_MUSTLOCK(dst)) { in fastPixelColor()
198 if (SDL_LockSurface(dst) < 0) { in fastPixelColor()
203 result = fastPixelColorNolock(dst, x, y, color); in fastPixelColor()
208 if (SDL_MUSTLOCK(dst)) { in fastPixelColor()
209 SDL_UnlockSurface(dst); in fastPixelColor()
228 int fastPixelRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in fastPixelRGBA() argument
235 color = SDL_MapRGBA(dst->format, r, g, b, a); in fastPixelRGBA()
240 return (fastPixelColor(dst, x, y, color)); in fastPixelRGBA()
256 int fastPixelRGBANolock(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in fastPixelRGBANolock() argument
263 color = SDL_MapRGBA(dst->format, r, g, b, a); in fastPixelRGBANolock()
268 return (fastPixelColorNolock(dst, x, y, color)); in fastPixelRGBANolock()
286 int _putPixelAlpha(SDL_Surface *dst, Sint16 x, Sint16 y, Uint32 color, Uint8 alpha) in _putPixelAlpha() argument
294 if (dst == NULL) in _putPixelAlpha()
299 if (x >= clip_xmin(dst) && x <= clip_xmax(dst) && in _putPixelAlpha()
300 y >= clip_ymin(dst) && y <= clip_ymax(dst)) in _putPixelAlpha()
303 format = dst->format; in _putPixelAlpha()
308 Uint8 *pixel = (Uint8 *) dst->pixels + y * dst->pitch + x; in _putPixelAlpha()
335 Uint16 *pixel = (Uint16 *) dst->pixels + y * dst->pitch / 2 + x; in _putPixelAlpha()
368 Uint8 *pixel = (Uint8 *) dst->pixels + y * dst->pitch + x * 3; in _putPixelAlpha()
407 Uint32 *pixel = (Uint32 *) dst->pixels + y * dst->pitch / 4 + x; in _putPixelAlpha()
451 *((Uint32 *) dst->pixels + y * dst->pitch / 4 + x) = color; in _putPixelAlpha()
453 Uint32 *pixel = (Uint32 *) dst->pixels + y * dst->pitch / 4 + x; in _putPixelAlpha()
509 int pixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color) in pixelColor() argument
518 if (SDL_MUSTLOCK(dst)) { in pixelColor()
519 if (SDL_LockSurface(dst) < 0) { in pixelColor()
529 SDL_MapRGBA(dst->format, (color & 0xff000000) >> 24, in pixelColor()
535 result = _putPixelAlpha(dst, x, y, mcolor, alpha); in pixelColor()
540 if (SDL_MUSTLOCK(dst)) { in pixelColor()
541 SDL_UnlockSurface(dst); in pixelColor()
557 int pixelColorNolock(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color) in pixelColorNolock() argument
568 SDL_MapRGBA(dst->format, (color & 0xff000000) >> 24, in pixelColorNolock()
574 result = _putPixelAlpha(dst, x, y, mcolor, alpha); in pixelColorNolock()
595 int _filledRectAlpha(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, U… in _filledRectAlpha() argument
604 if (dst == NULL) { in _filledRectAlpha()
608 format = dst->format; in _filledRectAlpha()
622 row = (Uint8 *) dst->pixels + y * dst->pitch; in _filledRectAlpha()
661 row = (Uint16 *) dst->pixels + y * dst->pitch / 2; in _filledRectAlpha()
707 row = (Uint8 *) dst->pixels + y * dst->pitch; in _filledRectAlpha()
755 row = (Uint32 *) dst->pixels + y * dst->pitch / 4; in _filledRectAlpha()
815 row = (Uint32 *) dst->pixels + y * dst->pitch / 4; in _filledRectAlpha()
856 int filledRectAlpha(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color) in filledRectAlpha() argument
865 if (SDL_MUSTLOCK(dst)) { in filledRectAlpha()
866 if (SDL_LockSurface(dst) < 0) { in filledRectAlpha()
876 SDL_MapRGBA(dst->format, (color & 0xff000000) >> 24, in filledRectAlpha()
882 result = _filledRectAlpha(dst, x1, y1, x2, y2, mcolor, alpha); in filledRectAlpha()
887 if (SDL_MUSTLOCK(dst)) { in filledRectAlpha()
888 SDL_UnlockSurface(dst); in filledRectAlpha()
905 int _HLineAlpha(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color) in _HLineAlpha() argument
907 return (filledRectAlpha(dst, x1, y, x2, y, color)); in _HLineAlpha()
921 int _VLineAlpha(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color) in _VLineAlpha() argument
923 return (filledRectAlpha(dst, x, y1, x, y2, color)); in _VLineAlpha()
937 int pixelColorWeight(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color, Uint32 weight) in pixelColorWeight() argument
951 return (pixelColor(dst, x, y, (color & (Uint32) 0xffffff00) | (Uint32) a)); in pixelColorWeight()
965 int pixelColorWeightNolock(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color, Uint32 weight) in pixelColorWeightNolock() argument
979 return (pixelColorNolock(dst, x, y, (color & (Uint32) 0xffffff00) | (Uint32) a)); in pixelColorWeightNolock()
995 int pixelRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in pixelRGBA() argument
1009 color = SDL_MapRGBA(dst->format, r, g, b, a); in pixelRGBA()
1013 return (fastPixelColor(dst, x, y, color)); in pixelRGBA()
1021 …return (pixelColor(dst, x, y, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint3… in pixelRGBA()
1041 int hlineColorStore(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color) in hlineColorStore() argument
1054 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in hlineColorStore()
1071 left = dst->clip_rect.x; in hlineColorStore()
1075 right = dst->clip_rect.x + dst->clip_rect.w - 1; in hlineColorStore()
1079 top = dst->clip_rect.y; in hlineColorStore()
1080 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in hlineColorStore()
1103 if (SDL_MUSTLOCK(dst)) { in hlineColorStore()
1104 if (SDL_LockSurface(dst) < 0) { in hlineColorStore()
1113 pixx = dst->format->BytesPerPixel; in hlineColorStore()
1114 pixy = dst->pitch; in hlineColorStore()
1115 pixel = ((Uint8 *) dst->pixels) + pixx * (int) x1 + pixy * (int) y; in hlineColorStore()
1120 switch (dst->format->BytesPerPixel) { in hlineColorStore()
1156 if (SDL_MUSTLOCK(dst)) { in hlineColorStore()
1157 SDL_UnlockSurface(dst); in hlineColorStore()
1185 int hlineRGBAStore(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Ui… in hlineRGBAStore() argument
1190 …return (hlineColorStore(dst, x1, x2, y, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8… in hlineRGBAStore()
1204 int hlineColor(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color) in hlineColor() argument
1218 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in hlineColor()
1235 left = dst->clip_rect.x; in hlineColor()
1239 right = dst->clip_rect.x + dst->clip_rect.w - 1; in hlineColor()
1243 top = dst->clip_rect.y; in hlineColor()
1244 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in hlineColor()
1278 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in hlineColor()
1280 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in hlineColor()
1286 if (SDL_MUSTLOCK(dst)) { in hlineColor()
1287 if (SDL_LockSurface(dst) < 0) { in hlineColor()
1295 pixx = dst->format->BytesPerPixel; in hlineColor()
1296 pixy = dst->pitch; in hlineColor()
1297 pixel = ((Uint8 *) dst->pixels) + pixx * (int) x1 + pixy * (int) y; in hlineColor()
1302 switch (dst->format->BytesPerPixel) { in hlineColor()
1339 if (SDL_MUSTLOCK(dst)) { in hlineColor()
1340 SDL_UnlockSurface(dst); in hlineColor()
1353 result = _HLineAlpha(dst, x1, x1 + dx, y, color); in hlineColor()
1373 int hlineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in hlineRGBA() argument
1378 …return (hlineColor(dst, x1, x2, y, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (… in hlineRGBA()
1392 int vlineColor(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color) in vlineColor() argument
1406 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in vlineColor()
1423 left = dst->clip_rect.x; in vlineColor()
1424 right = dst->clip_rect.x + dst->clip_rect.w - 1; in vlineColor()
1428 top = dst->clip_rect.y; in vlineColor()
1432 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in vlineColor()
1466 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in vlineColor()
1468 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in vlineColor()
1474 if (SDL_MUSTLOCK(dst)) { in vlineColor()
1475 if (SDL_LockSurface(dst) < 0) { in vlineColor()
1484 pixx = dst->format->BytesPerPixel; in vlineColor()
1485 pixy = dst->pitch; in vlineColor()
1486 pixel = ((Uint8 *) dst->pixels) + pixx * (int) x + pixy * (int) y1; in vlineColor()
1492 switch (dst->format->BytesPerPixel) { in vlineColor()
1524 if (SDL_MUSTLOCK(dst)) { in vlineColor()
1525 SDL_UnlockSurface(dst); in vlineColor()
1539 result = _VLineAlpha(dst, x, y1, y1 + h, color); in vlineColor()
1560 int vlineRGBA(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in vlineRGBA() argument
1565 …return (vlineColor(dst, x, y1, y2, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (… in vlineRGBA()
1580 int rectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color) in rectangleColor() argument
1586 if (dst == NULL) in rectangleColor()
1594 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in rectangleColor()
1603 return (pixelColor(dst, x1, y1, color)); in rectangleColor()
1605 return (vlineColor(dst, x1, y1, y2, color)); in rectangleColor()
1609 return (hlineColor(dst, x1, x2, y1, color)); in rectangleColor()
1635 result |= hlineColor(dst, x1, x2, y1, color); in rectangleColor()
1636 result |= hlineColor(dst, x1, x2, y2, color); in rectangleColor()
1640 result |= vlineColor(dst, x1, y1, y2, color); in rectangleColor()
1641 result |= vlineColor(dst, x2, y1, y2, color); in rectangleColor()
1663 int rectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, … in rectangleRGBA() argument
1669 (dst, x1, y1, x2, y2, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a)); in rectangleRGBA()
1685 int roundedRectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad… in roundedRectangleColor() argument
1694 if (dst == NULL) in roundedRectangleColor()
1710 return rectangleColor(dst, x1, y1, x2, y2, color); in roundedRectangleColor()
1716 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in roundedRectangleColor()
1725 return (pixelColor(dst, x1, y1, color)); in roundedRectangleColor()
1727 return (vlineColor(dst, x1, y1, y2, color)); in roundedRectangleColor()
1731 return (hlineColor(dst, x1, x2, y1, color)); in roundedRectangleColor()
1779 result |= arcColor(dst, xx1, yy1, rad, 180, 270, color); in roundedRectangleColor()
1780 result |= arcColor(dst, xx2, yy1, rad, 270, 360, color); in roundedRectangleColor()
1781 result |= arcColor(dst, xx1, yy2, rad, 90, 180, color); in roundedRectangleColor()
1782 result |= arcColor(dst, xx2, yy2, rad, 0, 90, color); in roundedRectangleColor()
1788 result |= hlineColor(dst, xx1, xx2, y1, color); in roundedRectangleColor()
1789 result |= hlineColor(dst, xx1, xx2, y2, color); in roundedRectangleColor()
1792 result |= vlineColor(dst, x1, yy1, yy2, color); in roundedRectangleColor()
1793 result |= vlineColor(dst, x2, yy1, yy2, color); in roundedRectangleColor()
1815 int roundedRectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad,… in roundedRectangleRGBA() argument
1821 …(dst, x1, y1, x2, y2, rad, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) … in roundedRectangleRGBA()
1837 int roundedBoxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint… in roundedBoxColor() argument
1846 if (dst == NULL) in roundedBoxColor()
1862 return rectangleColor(dst, x1, y1, x2, y2, color); in roundedBoxColor()
1868 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in roundedBoxColor()
1877 return (pixelColor(dst, x1, y1, color)); in roundedBoxColor()
1879 return (vlineColor(dst, x1, y1, y2, color)); in roundedBoxColor()
1883 return (hlineColor(dst, x1, x2, y1, color)); in roundedBoxColor()
1931 result |= filledPieColor(dst, xx1, yy1, rad, 180, 270, color); in roundedBoxColor()
1932 result |= filledPieColor(dst, xx2, yy1, rad, 270, 360, color); in roundedBoxColor()
1933 result |= filledPieColor(dst, xx1, yy2, rad, 90, 180, color); in roundedBoxColor()
1934 result |= filledPieColor(dst, xx2, yy2, rad, 0, 90, color); in roundedBoxColor()
1944 result |= boxColor(dst, xx1, y1, xx2, y2, color); in roundedBoxColor()
1947 result |= boxColor(dst, x1, yy1, xx1-1, yy2, color); in roundedBoxColor()
1948 result |= boxColor(dst, xx2+1, yy1, x2, yy2, color); in roundedBoxColor()
1970 int roundedBoxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, in roundedBoxRGBA() argument
1977 …(dst, x1, y1, x2, y2, rad, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) … in roundedBoxRGBA()
2031 static int _clipLine(SDL_Surface * dst, Sint16 * x1, Sint16 * y1, Sint16 * x2, Sint16 * y2) in _clipLine() argument
2042 left = dst->clip_rect.x; in _clipLine()
2043 right = dst->clip_rect.x + dst->clip_rect.w - 1; in _clipLine()
2044 top = dst->clip_rect.y; in _clipLine()
2045 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in _clipLine()
2107 int boxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color) in boxColor() argument
2121 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in boxColor()
2144 left = dst->clip_rect.x; in boxColor()
2148 right = dst->clip_rect.x + dst->clip_rect.w - 1; in boxColor()
2152 top = dst->clip_rect.y; in boxColor()
2156 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in boxColor()
2188 return (pixelColor(dst, x1, y1, color)); in boxColor()
2190 return (vlineColor(dst, x1, y1, y2, color)); in boxColor()
2194 return (hlineColor(dst, x1, x2, y1, color)); in boxColor()
2217 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in boxColor()
2219 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in boxColor()
2225 if (SDL_MUSTLOCK(dst)) { in boxColor()
2226 if (SDL_LockSurface(dst) < 0) { in boxColor()
2236 pixx = dst->format->BytesPerPixel; in boxColor()
2237 pixy = dst->pitch; in boxColor()
2238 pixel = ((Uint8 *) dst->pixels) + pixx * (int) x1 + pixy * (int) y1; in boxColor()
2245 switch (dst->format->BytesPerPixel) { in boxColor()
2289 if (SDL_MUSTLOCK(dst)) { in boxColor()
2290 SDL_UnlockSurface(dst); in boxColor()
2297 result = filledRectAlpha(dst, x1, y1, x1 + w, y1 + h, color); in boxColor()
2319 int boxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 … in boxRGBA() argument
2324 …return (boxColor(dst, x1, y1, x2, y2, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) … in boxRGBA()
2347 int lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color) in lineColor() argument
2361 if (!(_clipLine(dst, &x1, &y1, &x2, &y2))) { in lineColor()
2370 return (vlineColor(dst, x1, y1, y2, color)); in lineColor()
2372 return (vlineColor(dst, x1, y2, y1, color)); in lineColor()
2374 return (pixelColor(dst, x1, y1, color)); in lineColor()
2379 return (hlineColor(dst, x1, x2, y1, color)); in lineColor()
2381 return (hlineColor(dst, x2, x1, y1, color)); in lineColor()
2394 if (SDL_MUSTLOCK(dst)) { in lineColor()
2395 if (SDL_LockSurface(dst) < 0) { in lineColor()
2414 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in lineColor()
2416 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in lineColor()
2424 pixx = dst->format->BytesPerPixel; in lineColor()
2425 pixy = dst->pitch; in lineColor()
2426 pixel = ((Uint8 *) dst->pixels) + pixx * (int) x1 + pixy * (int) y1; in lineColor()
2443 switch (dst->format->BytesPerPixel) { in lineColor()
2508 pixelColorNolock (dst, x, y, color); in lineColor()
2520 pixelColorNolock (dst, x, y, color); in lineColor()
2529 pixelColorNolock (dst, x, y, color); in lineColor()
2534 if (SDL_MUSTLOCK(dst)) { in lineColor()
2535 SDL_UnlockSurface(dst); in lineColor()
2556 int lineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8… in lineRGBA() argument
2561 …return (lineColor(dst, x1, y1, x2, y2, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8)… in lineRGBA()
2589 int _aalineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, int d… in _aalineColor() argument
2600 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in _aalineColor()
2607 if (!(_clipLine(dst, &x1, &y1, &x2, &y2))) { in _aalineColor()
2646 return (vlineColor(dst, x1, y1, y2, color)); in _aalineColor()
2649 return (vlineColor(dst, x1, yy0, yy0+dy, color)); in _aalineColor()
2651 return (pixelColor(dst, x1, y1, color)); in _aalineColor()
2660 return (hlineColor(dst, x1, x2, y1, color)); in _aalineColor()
2663 return (hlineColor(dst, xx0, xx0+dx, y1, color)); in _aalineColor()
2665 return (pixelColor(dst, x1, y1, color)); in _aalineColor()
2672 return (lineColor(dst, x1, y1, x2, y2, color)); in _aalineColor()
2706 if (SDL_MUSTLOCK(dst)) { in _aalineColor()
2707 if (SDL_LockSurface(dst) < 0) { in _aalineColor()
2715 result |= pixelColorNolock(dst, x1, y1, color); in _aalineColor()
2754 result |= pixelColorWeightNolock (dst, xx0, yy0, color, 255 - wgt); in _aalineColor()
2755 result |= pixelColorWeightNolock (dst, x0pxdir, yy0, color, wgt); in _aalineColor()
2792 result |= pixelColorWeightNolock (dst, xx0, yy0, color, 255 - wgt); in _aalineColor()
2793 result |= pixelColorWeightNolock (dst, xx0, y0p1, color, wgt); in _aalineColor()
2805 result |= pixelColorNolock (dst, x2, y2, color); in _aalineColor()
2809 if (SDL_MUSTLOCK(dst)) { in _aalineColor()
2810 SDL_UnlockSurface(dst); in _aalineColor()
2828 int aalineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color) in aalineColor() argument
2830 return (_aalineColor(dst, x1, y1, x2, y2, color, 1)); in aalineColor()
2848 int aalineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uin… in aalineRGBA() argument
2851 …(dst, x1, y1, x2, y2, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a, 1)… in aalineRGBA()
2872 int circleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color) in circleColor() argument
2889 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in circleColor()
2904 return (pixelColor(dst, x, y, color)); in circleColor()
2912 left = dst->clip_rect.x; in circleColor()
2917 right = dst->clip_rect.x + dst->clip_rect.w - 1; in circleColor()
2922 top = dst->clip_rect.y; in circleColor()
2927 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in circleColor()
2938 if (SDL_MUSTLOCK(dst)) { in circleColor()
2939 if (SDL_LockSurface(dst) < 0) { in circleColor()
2958 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in circleColor()
2960 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in circleColor()
2972 result |= fastPixelColorNolock(dst, xmcx, ypcy, color); in circleColor()
2973 result |= fastPixelColorNolock(dst, xpcx, ypcy, color); in circleColor()
2974 result |= fastPixelColorNolock(dst, xmcx, ymcy, color); in circleColor()
2975 result |= fastPixelColorNolock(dst, xpcx, ymcy, color); in circleColor()
2977 result |= fastPixelColorNolock(dst, x, ymcy, color); in circleColor()
2978 result |= fastPixelColorNolock(dst, x, ypcy, color); in circleColor()
2985 result |= fastPixelColorNolock(dst, xmcy, ypcx, color); in circleColor()
2986 result |= fastPixelColorNolock(dst, xpcy, ypcx, color); in circleColor()
2987 result |= fastPixelColorNolock(dst, xmcy, ymcx, color); in circleColor()
2988 result |= fastPixelColorNolock(dst, xpcy, ymcx, color); in circleColor()
2990 result |= fastPixelColorNolock(dst, xmcy, y, color); in circleColor()
2991 result |= fastPixelColorNolock(dst, xpcy, y, color); in circleColor()
3012 SDL_UnlockSurface(dst); in circleColor()
3029 result |= pixelColorNolock (dst, xmcx, ypcy, color); in circleColor()
3030 result |= pixelColorNolock (dst, xpcx, ypcy, color); in circleColor()
3031 result |= pixelColorNolock (dst, xmcx, ymcy, color); in circleColor()
3032 result |= pixelColorNolock (dst, xpcx, ymcy, color); in circleColor()
3034 result |= pixelColorNolock (dst, x, ymcy, color); in circleColor()
3035 result |= pixelColorNolock (dst, x, ypcy, color); in circleColor()
3042 result |= pixelColorNolock (dst, xmcy, ypcx, color); in circleColor()
3043 result |= pixelColorNolock (dst, xpcy, ypcx, color); in circleColor()
3044 result |= pixelColorNolock (dst, xmcy, ymcx, color); in circleColor()
3045 result |= pixelColorNolock (dst, xpcy, ymcx, color); in circleColor()
3047 result |= pixelColorNolock (dst, xmcy, y, color); in circleColor()
3048 result |= pixelColorNolock (dst, xpcy, y, color); in circleColor()
3069 if (SDL_MUSTLOCK(dst)) { in circleColor()
3070 SDL_UnlockSurface(dst); in circleColor()
3090 int circleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 … in circleRGBA() argument
3095 …return (circleColor(dst, x, y, rad, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | … in circleRGBA()
3117 int arcColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 co… in arcColor() argument
3137 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in arcColor()
3152 return (pixelColor(dst, x, y, color)); in arcColor()
3160 left = dst->clip_rect.x; in arcColor()
3165 right = dst->clip_rect.x + dst->clip_rect.w - 1; in arcColor()
3170 top = dst->clip_rect.y; in arcColor()
3175 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in arcColor()
3298 if (SDL_MUSTLOCK(dst)) { in arcColor()
3299 if (SDL_LockSurface(dst) < 0) { in arcColor()
3323 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in arcColor()
3325 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in arcColor()
3338 …if (drawoct & 4) result |= fastPixelColorNolock(dst, xmcx, ypcy, color); // drawoct & 4 = 22; dra… in arcColor()
3339 if (drawoct & 2) result |= fastPixelColorNolock(dst, xpcx, ypcy, color); in arcColor()
3340 if (drawoct & 32) result |= fastPixelColorNolock(dst, xmcx, ymcy, color); in arcColor()
3341 if (drawoct & 64) result |= fastPixelColorNolock(dst, xpcx, ymcy, color); in arcColor()
3343 …if (drawoct & 6) result |= fastPixelColorNolock(dst, x, ypcy, color); // 4 + 2; drawoct[2] || dra… in arcColor()
3344 if (drawoct & 96) result |= fastPixelColorNolock(dst, x, ymcy, color); // 32 + 64 in arcColor()
3352 if (drawoct & 8) result |= fastPixelColorNolock(dst, xmcy, ypcx, color); in arcColor()
3353 if (drawoct & 1) result |= fastPixelColorNolock(dst, xpcy, ypcx, color); in arcColor()
3354 if (drawoct & 16) result |= fastPixelColorNolock(dst, xmcy, ymcx, color); in arcColor()
3355 if (drawoct & 128) result |= fastPixelColorNolock(dst, xpcy, ymcx, color); in arcColor()
3357 if (drawoct & 24) result |= fastPixelColorNolock(dst, xmcy, y, color); // 8 + 16 in arcColor()
3358 if (drawoct & 129) result |= fastPixelColorNolock(dst, xpcy, y, color); // 1 + 128 in arcColor()
3393 SDL_UnlockSurface(dst); in arcColor()
3409 if (drawoct & 4) result |= pixelColorNolock(dst, xmcx, ypcy, color); in arcColor()
3410 if (drawoct & 2) result |= pixelColorNolock(dst, xpcx, ypcy, color); in arcColor()
3411 if (drawoct & 32) result |= pixelColorNolock(dst, xmcx, ymcy, color); in arcColor()
3412 if (drawoct & 64) result |= pixelColorNolock(dst, xpcx, ymcy, color); in arcColor()
3414 if (drawoct & 96) result |= pixelColorNolock(dst, x, ymcy, color); in arcColor()
3415 if (drawoct & 6) result |= pixelColorNolock(dst, x, ypcy, color); in arcColor()
3423 if (drawoct & 8) result |= pixelColorNolock(dst, xmcy, ypcx, color); in arcColor()
3424 if (drawoct & 1) result |= pixelColorNolock(dst, xpcy, ypcx, color); in arcColor()
3425 if (drawoct & 16) result |= pixelColorNolock(dst, xmcy, ymcx, color); in arcColor()
3426 if (drawoct & 128) result |= pixelColorNolock(dst, xpcy, ymcx, color); in arcColor()
3428 if (drawoct & 24) result |= pixelColorNolock(dst, xmcy, y, color); in arcColor()
3429 if (drawoct & 129) result |= pixelColorNolock(dst, xpcy, y, color); in arcColor()
3465 if (SDL_MUSTLOCK(dst)) { in arcColor()
3466 SDL_UnlockSurface(dst); in arcColor()
3488 int arcRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, U… in arcRGBA() argument
3493 …return (arcColor(dst, x, y, rad, start, end, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b… in arcRGBA()
3512 int aacircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color) in aacircleColor() argument
3514 return (aaellipseColor(dst, x, y, rad, rad, color)); in aacircleColor()
3531 int aacircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint… in aacircleRGBA() argument
3537 (dst, x, y, rad, rad, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a)); in aacircleRGBA()
3556 int filledCircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color) in filledCircleColor() argument
3574 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in filledCircleColor()
3589 return (pixelColor(dst, x, y, color)); in filledCircleColor()
3597 left = dst->clip_rect.x; in filledCircleColor()
3602 right = dst->clip_rect.x + dst->clip_rect.w - 1; in filledCircleColor()
3607 top = dst->clip_rect.y; in filledCircleColor()
3612 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in filledCircleColor()
3630 result |= hlineColor(dst, xmcx, xpcx, ypcy, color); in filledCircleColor()
3631 result |= hlineColor(dst, xmcx, xpcx, ymcy, color); in filledCircleColor()
3633 result |= hlineColor(dst, xmcx, xpcx, y, color); in filledCircleColor()
3642 result |= hlineColor(dst, xmcy, xpcy, ymcx, color); in filledCircleColor()
3643 result |= hlineColor(dst, xmcy, xpcy, ypcx, color); in filledCircleColor()
3645 result |= hlineColor(dst, xmcy, xpcy, y, color); in filledCircleColor()
3683 int filledCircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, … in filledCircleRGBA() argument
3689 (dst, x, y, rad, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a)); in filledCircleRGBA()
3709 int ellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color) in ellipseColor() argument
3726 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in ellipseColor()
3741 return (vlineColor(dst, x, y - ry, y + ry, color)); in ellipseColor()
3747 return (hlineColor(dst, x - rx, x + rx, y, color)); in ellipseColor()
3755 left = dst->clip_rect.x; in ellipseColor()
3760 right = dst->clip_rect.x + dst->clip_rect.w - 1; in ellipseColor()
3765 top = dst->clip_rect.y; in ellipseColor()
3770 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in ellipseColor()
3786 if (SDL_MUSTLOCK(dst)) { in ellipseColor()
3787 if (SDL_LockSurface(dst) < 0) { in ellipseColor()
3806 color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1], colorptr[2], colorptr[3]); in ellipseColor()
3808 color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2], colorptr[1], colorptr[0]); in ellipseColor()
3828 result |= fastPixelColorNolock(dst, xmh, ypk, color); in ellipseColor()
3829 result |= fastPixelColorNolock(dst, xph, ypk, color); in ellipseColor()
3830 result |= fastPixelColorNolock(dst, xmh, ymk, color); in ellipseColor()
3831 result |= fastPixelColorNolock(dst, xph, ymk, color); in ellipseColor()
3833 result |= fastPixelColorNolock(dst, xmh, y, color); in ellipseColor()
3834 result |= fastPixelColorNolock(dst, xph, y, color); in ellipseColor()
3842 result |= fastPixelColorNolock(dst, xmi, ypj, color); in ellipseColor()
3843 result |= fastPixelColorNolock(dst, xpi, ypj, color); in ellipseColor()
3844 result |= fastPixelColorNolock(dst, xmi, ymj, color); in ellipseColor()
3845 result |= fastPixelColorNolock(dst, xpi, ymj, color); in ellipseColor()
3847 result |= fastPixelColorNolock(dst, xmi, y, color); in ellipseColor()
3848 result |= fastPixelColorNolock(dst, xpi, y, color); in ellipseColor()
3873 result |= fastPixelColorNolock(dst, xmj, ypi, color); in ellipseColor()
3874 result |= fastPixelColorNolock(dst, xpj, ypi, color); in ellipseColor()
3875 result |= fastPixelColorNolock(dst, xmj, ymi, color); in ellipseColor()
3876 result |= fastPixelColorNolock(dst, xpj, ymi, color); in ellipseColor()
3878 result |= fastPixelColorNolock(dst, xmj, y, color); in ellipseColor()
3879 result |= fastPixelColorNolock(dst, xpj, y, color); in ellipseColor()
3887 result |= fastPixelColorNolock(dst, xmk, yph, color); in ellipseColor()
3888 result |= fastPixelColorNolock(dst, xpk, yph, color); in ellipseColor()
3889 result |= fastPixelColorNolock(dst, xmk, ymh, color); in ellipseColor()
3890 result |= fastPixelColorNolock(dst, xpk, ymh, color); in ellipseColor()
3892 result |= fastPixelColorNolock(dst, xmk, y, color); in ellipseColor()
3893 result |= fastPixelColorNolock(dst, xpk, y, color); in ellipseColor()
3922 result |= pixelColorNolock (dst, xmh, ypk, color); in ellipseColor()
3923 result |= pixelColorNolock (dst, xph, ypk, color); in ellipseColor()
3924 result |= pixelColorNolock (dst, xmh, ymk, color); in ellipseColor()
3925 result |= pixelColorNolock (dst, xph, ymk, color); in ellipseColor()
3927 result |= pixelColorNolock (dst, xmh, y, color); in ellipseColor()
3928 result |= pixelColorNolock (dst, xph, y, color); in ellipseColor()
3936 result |= pixelColorNolock (dst, xmi, ypj, color); in ellipseColor()
3937 result |= pixelColorNolock (dst, xpi, ypj, color); in ellipseColor()
3938 result |= pixelColorNolock (dst, xmi, ymj, color); in ellipseColor()
3939 result |= pixelColor(dst, xpi, ymj, color); in ellipseColor()
3941 result |= pixelColorNolock (dst, xmi, y, color); in ellipseColor()
3942 result |= pixelColorNolock (dst, xpi, y, color); in ellipseColor()
3967 result |= pixelColorNolock (dst, xmj, ypi, color); in ellipseColor()
3968 result |= pixelColorNolock (dst, xpj, ypi, color); in ellipseColor()
3969 result |= pixelColorNolock (dst, xmj, ymi, color); in ellipseColor()
3970 result |= pixelColorNolock (dst, xpj, ymi, color); in ellipseColor()
3972 result |= pixelColorNolock (dst, xmj, y, color); in ellipseColor()
3973 result |= pixelColorNolock (dst, xpj, y, color); in ellipseColor()
3981 result |= pixelColorNolock (dst, xmk, yph, color); in ellipseColor()
3982 result |= pixelColorNolock (dst, xpk, yph, color); in ellipseColor()
3983 result |= pixelColorNolock (dst, xmk, ymh, color); in ellipseColor()
3984 result |= pixelColorNolock (dst, xpk, ymh, color); in ellipseColor()
3986 result |= pixelColorNolock (dst, xmk, y, color); in ellipseColor()
3987 result |= pixelColorNolock (dst, xpk, y, color); in ellipseColor()
4001 if (SDL_MUSTLOCK(dst)) { in ellipseColor()
4002 SDL_UnlockSurface(dst); in ellipseColor()
4023 int ellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint… in ellipseRGBA() argument
4028 …return (ellipseColor(dst, x, y, rx, ry, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8… in ellipseRGBA()
4088 int aaellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color) in aaellipseColor() argument
4103 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in aaellipseColor()
4118 return (vlineColor(dst, x, y - ry, y + ry, color)); in aaellipseColor()
4124 return (hlineColor(dst, x - rx, x + rx, y, color)); in aaellipseColor()
4132 left = dst->clip_rect.x; in aaellipseColor()
4137 right = dst->clip_rect.x + dst->clip_rect.w - 1; in aaellipseColor()
4142 top = dst->clip_rect.y; in aaellipseColor()
4147 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in aaellipseColor()
4174 if (SDL_MUSTLOCK(dst)) { in aaellipseColor()
4175 if (SDL_LockSurface(dst) < 0) { in aaellipseColor()
4184 result |= pixelColorNolock(dst, xp, yp, color); in aaellipseColor()
4185 result |= pixelColorNolock(dst, xc2 - xp, yp, color); in aaellipseColor()
4186 result |= pixelColorNolock(dst, xp, yc2 - yp, color); in aaellipseColor()
4187 result |= pixelColorNolock(dst, xc2 - xp, yc2 - yp, color); in aaellipseColor()
4229 result |= pixelColorWeightNolock(dst, xp, yp, color, iweight); in aaellipseColor()
4230 result |= pixelColorWeightNolock(dst, xx, yp, color, iweight); in aaellipseColor()
4232 result |= pixelColorWeightNolock(dst, xp, ys, color, weight); in aaellipseColor()
4233 result |= pixelColorWeightNolock(dst, xx, ys, color, weight); in aaellipseColor()
4237 result |= pixelColorWeightNolock(dst, xp, yy, color, iweight); in aaellipseColor()
4238 result |= pixelColorWeightNolock(dst, xx, yy, color, iweight); in aaellipseColor()
4241 result |= pixelColorWeightNolock(dst, xp, yy, color, weight); in aaellipseColor()
4242 result |= pixelColorWeightNolock(dst, xx, yy, color, weight); in aaellipseColor()
4289 result |= pixelColorWeightNolock(dst, xp, yp, color, iweight); in aaellipseColor()
4290 result |= pixelColorWeightNolock(dst, xx, yp, color, iweight); in aaellipseColor()
4292 result |= pixelColorWeightNolock(dst, xp, yy, color, iweight); in aaellipseColor()
4293 result |= pixelColorWeightNolock(dst, xx, yy, color, iweight); in aaellipseColor()
4297 result |= pixelColorWeightNolock(dst, xs, yp, color, weight); in aaellipseColor()
4298 result |= pixelColorWeightNolock(dst, xx, yp, color, weight); in aaellipseColor()
4300 result |= pixelColorWeightNolock(dst, xs, yy, color, weight); in aaellipseColor()
4301 result |= pixelColorWeightNolock(dst, xx, yy, color, weight); in aaellipseColor()
4306 if (SDL_MUSTLOCK(dst)) { in aaellipseColor()
4307 SDL_UnlockSurface(dst); in aaellipseColor()
4328 int aaellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Ui… in aaellipseRGBA() argument
4334 (dst, x, y, rx, ry, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a)); in aaellipseRGBA()
4358 int filledEllipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color) in filledEllipseColor() argument
4374 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in filledEllipseColor()
4389 return (vlineColor(dst, x, y - ry, y + ry, color)); in filledEllipseColor()
4395 return (hlineColor(dst, x - rx, x + rx, y, color)); in filledEllipseColor()
4403 left = dst->clip_rect.x; in filledEllipseColor()
4408 right = dst->clip_rect.x + dst->clip_rect.w - 1; in filledEllipseColor()
4413 top = dst->clip_rect.y; in filledEllipseColor()
4418 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in filledEllipseColor()
4446 result |= hlineColor(dst, xmh, xph, y + k, color); in filledEllipseColor()
4447 result |= hlineColor(dst, xmh, xph, y - k, color); in filledEllipseColor()
4449 result |= hlineColor(dst, xmh, xph, y, color); in filledEllipseColor()
4457 result |= hlineColor(dst, xmi, xpi, y + j, color); in filledEllipseColor()
4458 result |= hlineColor(dst, xmi, xpi, y - j, color); in filledEllipseColor()
4460 result |= hlineColor(dst, xmi, xpi, y, color); in filledEllipseColor()
4483 result |= hlineColor(dst, xmj, xpj, y + i, color); in filledEllipseColor()
4484 result |= hlineColor(dst, xmj, xpj, y - i, color); in filledEllipseColor()
4486 result |= hlineColor(dst, xmj, xpj, y, color); in filledEllipseColor()
4494 result |= hlineColor(dst, xmk, xpk, y + h, color); in filledEllipseColor()
4495 result |= hlineColor(dst, xmk, xpk, y - h, color); in filledEllipseColor()
4497 result |= hlineColor(dst, xmk, xpk, y, color); in filledEllipseColor()
4526 int filledEllipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g… in filledEllipseRGBA() argument
4532 (dst, x, y, rx, ry, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (Uint32) a)); in filledEllipseRGBA()
4553 int _pieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 c… in _pieColor() argument
4567 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in _pieColor()
4588 return (pixelColor(dst, x, y, color)); in _pieColor()
4597 left = dst->clip_rect.x; in _pieColor()
4602 right = dst->clip_rect.x + dst->clip_rect.w - 1; in _pieColor()
4607 top = dst->clip_rect.y; in _pieColor()
4612 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in _pieColor()
4658 result = lineColor(dst, vx[0], vy[0], vx[1], vy[1], color); in _pieColor()
4678 result = filledPolygonColor(dst, vx, vy, numpoints, color); in _pieColor()
4680 result = polygonColor(dst, vx, vy, numpoints, color); in _pieColor()
4703 int pieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, in pieColor() argument
4706 return (_pieColor(dst, x, y, rad, start, end, color, 0)); in pieColor()
4726 int pieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, in pieRGBA() argument
4729 return (_pieColor(dst, x, y, rad, start, end, in pieRGBA()
4747 int filledPieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uin… in filledPieColor() argument
4749 return (_pieColor(dst, x, y, rad, start, end, color, 1)); in filledPieColor()
4768 int filledPieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, in filledPieRGBA() argument
4771 return (_pieColor(dst, x, y, rad, start, end, in filledPieRGBA()
4793 int trigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3… in trigonColor() argument
4805 return(polygonColor(dst,vx,vy,3,color)); in trigonColor()
4825 int trigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, in trigonRGBA() argument
4838 return(polygonRGBA(dst,vx,vy,3,r,g,b,a)); in trigonRGBA()
4859 int aatrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 … in aatrigonColor() argument
4871 return(aapolygonColor(dst,vx,vy,3,color)); in aatrigonColor()
4891 int aatrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 … in aatrigonRGBA() argument
4904 return(aapolygonRGBA(dst,vx,vy,3,r,g,b,a)); in aatrigonRGBA()
4925 int filledTrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sin… in filledTrigonColor() argument
4937 return(filledPolygonColor(dst,vx,vy,3,color)); in filledTrigonColor()
4959 int filledTrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint… in filledTrigonRGBA() argument
4972 return(filledPolygonRGBA(dst,vx,vy,3,r,g,b,a)); in filledTrigonRGBA()
4988 int polygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color) in polygonColor() argument
4997 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in polygonColor()
5031 result |= lineColor(dst, *x1, *y1, *x2, *y2, color); in polygonColor()
5037 result |= lineColor(dst, *x1, *y1, *vx, *vy, color); in polygonColor()
5056 int polygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint8 r, Uint8 g, U… in polygonRGBA() argument
5061 …return (polygonColor(dst, vx, vy, n, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) |… in polygonRGBA()
5077 int aapolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color) in aapolygonColor() argument
5086 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in aapolygonColor()
5120 result |= _aalineColor(dst, *x1, *y1, *x2, *y2, color, 0); in aapolygonColor()
5126 result |= _aalineColor(dst, *x1, *y1, *vx, *vy, color, 0); in aapolygonColor()
5145 int aapolygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint8 r, Uint8 g,… in aapolygonRGBA() argument
5150 …return (aapolygonColor(dst, vx, vy, n, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8)… in aapolygonRGBA()
5197 int filledPolygonColorMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 col… in filledPolygonColorMT() argument
5214 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in filledPolygonColorMT()
5347 result |= hlineColor(dst, xa, xb, y, color); in filledPolygonColorMT()
5372 int filledPolygonRGBAMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint8 r, Ui… in filledPolygonRGBAMT() argument
5377 …return (filledPolygonColorMT(dst, vx, vy, n, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b… in filledPolygonRGBAMT()
5394 int filledPolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color) in filledPolygonColor() argument
5399 return (filledPolygonColorMT(dst, vx, vy, n, color, NULL, NULL)); in filledPolygonColor()
5416 int filledPolygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint8 r, Uint… in filledPolygonRGBA() argument
5421 …return (filledPolygonColorMT(dst, vx, vy, n, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b… in filledPolygonRGBA()
5437 int _HLineTextured(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, SDL_Surface *texture, int tex… in _HLineTextured() argument
5451 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in _HLineTextured()
5468 left = dst->clip_rect.x; in _HLineTextured()
5472 right = dst->clip_rect.x + dst->clip_rect.w - 1; in _HLineTextured()
5476 top = dst->clip_rect.y; in _HLineTextured()
5477 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in _HLineTextured()
5524 result = (SDL_BlitSurface (texture, &source_rect , dst, &dst_rect) == 0); in _HLineTextured()
5531 result |= (SDL_BlitSurface (texture, &source_rect , dst, &dst_rect) == 0); in _HLineTextured()
5543 result |= (SDL_BlitSurface (texture,&source_rect , dst, &dst_rect) == 0); in _HLineTextured()
5574 int texturedPolygonMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, in texturedPolygonMT() argument
5591 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in texturedPolygonMT()
5672 if (maxx <0 || minx > dst->w){ in texturedPolygonMT()
5675 if (maxy <0 || miny > dst->h){ in texturedPolygonMT()
5718 result |= _HLineTextured(dst, xa, xb, y, texture, texture_dx, texture_dy); in texturedPolygonMT()
5741 int texturedPolygon(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, SDL_Surface *te… in texturedPolygon() argument
5746 return (texturedPolygonMT(dst, vx, vy, n, texture, texture_dx, texture_dy, NULL, NULL)); in texturedPolygon()
5908 int characterColor(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint32 color) in characterColor() argument
5928 if ((dst->clip_rect.w==0) || (dst->clip_rect.h==0)) { in characterColor()
5937 left = dst->clip_rect.x; in characterColor()
5942 right = dst->clip_rect.x + dst->clip_rect.w - 1; in characterColor()
5947 top = dst->clip_rect.y; in characterColor()
5952 bottom = dst->clip_rect.y + dst->clip_rect.h - 1; in characterColor()
6058 result = SDL_BlitSurface(gfxPrimitivesFont[ci], &srect, dst, &drect); in characterColor()
6077 int characterRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in characterRGBA() argument
6082 …return (characterColor(dst, x, y, c, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) |… in characterRGBA()
6099 int stringColor(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint32 color) in stringColor() argument
6107 result |= characterColor(dst, curx, cury, *curchar, color); in stringColor()
6143 int stringRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint8 r, Uint8 g, Uint8 b, Uin… in stringRGBA() argument
6148 …return (stringColor(dst, x, y, s, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8) | (U… in stringRGBA()
6221 int bezierColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, int s, Uint32 color) in bezierColor() argument
6269 result |= lineColor(dst, x1, y1, x2, y2, color); in bezierColor()
6296 int bezierRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, int s, Uint8 r, Uint… in bezierRGBA() argument
6301 …return (bezierColor(dst, vx, vy, n, s, ((Uint32) r << 24) | ((Uint32) g << 16) | ((Uint32) b << 8)… in bezierRGBA()
6436 if (SDL_MUSTLOCK(m->dst)) { in _murphyParaline()
6437 SDL_LockSurface(m->dst); in _murphyParaline()
6442 pixelColorNolock(m->dst, x, y, m->color); in _murphyParaline()
6467 if (SDL_MUSTLOCK(m->dst)) { in _murphyParaline()
6468 SDL_UnlockSurface(m->dst); in _murphyParaline()
6554 if (SDL_MUSTLOCK(m->dst)) { in _murphyIteration()
6555 SDL_LockSurface(m->dst); in _murphyIteration()
6560 pixelColorNolock(m->dst, b.x, b.y, m->color); in _murphyIteration()
6565 pixelColorNolock(m->dst, b.x, b.y, m->color); in _murphyIteration()
6570 pixelColorNolock(m->dst, b.x, b.y, m->color); in _murphyIteration()
6575 pixelColorNolock(m->dst, b.x, b.y, m->color); in _murphyIteration()
6579 if (SDL_MUSTLOCK(m->dst)) { in _murphyIteration()
6580 SDL_UnlockSurface(m->dst); in _murphyIteration()
6591 polygonColor(m->dst, px, py, 4, m->color); in _murphyIteration()
6808 int thickLineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint… in thickLineColor() argument
6813 if (dst == NULL) return -1; in thickLineColor()
6819 return boxColor(dst, x1 - wh, y1 - wh, x2 + width, y2 + width, color); in thickLineColor()
6822 m.dst = dst; in thickLineColor()
6847 int thickLineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint8… in thickLineRGBA() argument
6849 return (thickLineColor(dst, x1, y1, x2, y2, width, in thickLineRGBA()