summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2013-09-12 16:07:34 (GMT)
committerjoye <joye>2013-09-12 16:07:34 (GMT)
commit646de8f20450814fb24ac3f97635d7faad47f5cf (patch)
tree68c09b7529e75b82d75410bea134d57c97c6b2d8 /src
parentc07ed52976802690b3b87ddaf73a654f74a2f243 (diff)
downloadblt-646de8f20450814fb24ac3f97635d7faad47f5cf.zip
blt-646de8f20450814fb24ac3f97635d7faad47f5cf.tar.gz
blt-646de8f20450814fb24ac3f97635d7faad47f5cf.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrMisc.C50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/bltGrMisc.C b/src/bltGrMisc.C
index 7d3c8f4..1ff37db 100644
--- a/src/bltGrMisc.C
+++ b/src/bltGrMisc.C
@@ -1050,56 +1050,6 @@ Blt_Draw2DSegments(
free(xsegments);
}
-void
-Blt_DrawArrow(Display *display, Drawable drawable, XColor *color, int x, int y,
- int w, int h, int borderWidth, int orientation)
-{
- int s;
- int s2;
- int ax, ay;
- int dx, dy;
- GC gc;
-
-#define ARROW_IPAD 1
- w -= 2 * (ARROW_IPAD + borderWidth);
- h -= 2 * (ARROW_IPAD + borderWidth);
- x += ARROW_IPAD + borderWidth;
- y += ARROW_IPAD + borderWidth;
-
- s = MIN(w, h);
- s2 = (s / 2) + 1;
- ax = x + w / 2;
- ay = y + h / 2;
-
- gc = Tk_GCForColor(color, drawable);
- switch (orientation) {
- case ARROW_UP:
- ay -= s2 / 2;
- for (dx = 0; dx < s2; dx++, ay++) {
- XDrawLine(display, drawable, gc, ax - dx, ay, ax + dx, ay);
- }
- break;
- case ARROW_DOWN:
- ay += s2 / 2;
- for (dx = 0; dx < s2; dx++, ay--) {
- XDrawLine(display, drawable, gc, ax - dx, ay, ax + dx, ay);
- }
- break;
- case ARROW_LEFT:
- ax -= s2 / 2;
- for (dy = 0; dy < s2; dy++, ax++) {
- XDrawLine(display, drawable, gc, ax, ay - dy, ax, ay + dy);
- }
- break;
- case ARROW_RIGHT:
- ax += s2 / 2;
- for (dy = 0; dy < s2; dy++, ax--) {
- XDrawLine(display, drawable, gc, ax, ay - dy, ax, ay + dy);
- }
- break;
- }
-}
-
long
Blt_MaxRequestSize(Display *display, size_t elemSize)
{