summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoye <joye>2013-09-09 19:04:29 (GMT)
committerjoye <joye>2013-09-09 19:04:29 (GMT)
commit5aeb269ecd2d54b26731b840a475d4dd1ebf2901 (patch)
treeae6baaf16847e9bc3607464f2f02a3906d2e9f01
parent5b9f4e2631e67a3d62b8cae474d45dfff1285f27 (diff)
downloadblt-5aeb269ecd2d54b26731b840a475d4dd1ebf2901.zip
blt-5aeb269ecd2d54b26731b840a475d4dd1ebf2901.tar.gz
blt-5aeb269ecd2d54b26731b840a475d4dd1ebf2901.tar.bz2
*** empty log message ***
-rw-r--r--src/bltGrMisc.C87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/bltGrMisc.C b/src/bltGrMisc.C
index ca3c40f..d795fae 100644
--- a/src/bltGrMisc.C
+++ b/src/bltGrMisc.C
@@ -723,10 +723,6 @@ Blt_GetProjection(
return t;
}
-typedef struct {
- double hue, sat, val;
-} HSV;
-
#define SetColor(c,r,g,b) ((c)->red = (int)((r) * 65535.0), \
(c)->green = (int)((g) * 65535.0), \
(c)->blue = (int)((b) * 65535.0))
@@ -1055,72 +1051,6 @@ Blt_Draw2DSegments(
}
void
-Blt_DrawArrowOld(Display *display, Drawable drawable, GC gc, int x, int y, int w,
- int h, int borderWidth, int orientation)
-{
- XPoint arrow[4];
- int s2, s;
- int ax, ay;
-
-#define ARROW_IPAD 1
- w -= 2 * (ARROW_IPAD + borderWidth);
- h -= 2 * (ARROW_IPAD + borderWidth);
- x += ARROW_IPAD + borderWidth;
- y += ARROW_IPAD + borderWidth;
-
- w |= 0x01;
- h |= 0x01;
- s = MIN(w, h);
- s2 = s / 2;
- ax = x + w / 2;
- ay = y + h / 2;
-
- switch (orientation) {
- case ARROW_UP:
- ay -= s2/2 + 1;
- arrow[2].x = arrow[0].x = ax;
- arrow[2].y = arrow[0].y = ay;
- arrow[0].x = ax + s2 + 1;
- arrow[1].x = ax - s2;
- arrow[0].y = arrow[1].y = ay + s2 + 1;
- fprintf(stderr, "up arrow %d,%d %d,%d %d,%d\n",
- arrow[0].x, arrow[0].y,
- arrow[1].x, arrow[1].y,
- arrow[2].x, arrow[2].y);
- break;
- case ARROW_DOWN:
- ay -= s2/2;
- arrow[3].x = arrow[0].x = ax;
- arrow[3].y = arrow[0].y = ay + s2 + 1;
- arrow[1].x = ax + s2 + 1;
- arrow[2].x = ax - s2;
- arrow[2].y = arrow[1].y = ay;
- fprintf(stderr, "down arrow %d,%d %d,%d %d,%d\n",
- arrow[0].x, arrow[0].y,
- arrow[1].x, arrow[1].y,
- arrow[2].x, arrow[2].y);
- break;
- case ARROW_LEFT:
- ax -= s2 / 2;
- arrow[3].x = arrow[0].x = ax;
- arrow[3].y = arrow[0].y = ay;
- arrow[1].y = ay - s2;
- arrow[2].y = ay + s2 + 1;
- arrow[2].x = arrow[1].x = ax + s2 + 1;
- break;
- case ARROW_RIGHT:
- ax -= s2 / 2;
- arrow[3].x = arrow[0].x = ax + s2 + 1;
- arrow[3].y = arrow[0].y = ay;
- arrow[1].y = ay - s2;
- arrow[2].y = ay + s2;
- arrow[2].x = arrow[1].x = ax;
- break;
- }
- XFillPolygon(display, drawable, gc, arrow, 3, Convex, CoordModeOrigin);
-}
-
-void
Blt_DrawArrow(Display *display, Drawable drawable, XColor *color, int x, int y,
int w, int h, int borderWidth, int orientation)
{
@@ -1553,20 +1483,3 @@ ArcBallCmd(ClientData clientData, Tcl_Interp *interp, int objc,
return (*proc) (clientData, interp, objc, objv);
}
-#undef Tk_GetPixmap
-Pixmap
-Blt_GetPixmap(Display *display, Drawable drawable, int w, int h, int depth,
- int lineNum, const char *fileName)
-{
- if (w <= 0) {
- fprintf(stderr, "line %d of %s: width is %d\n",
- lineNum, fileName, w);
- abort();
- }
- if (h <= 0) {
- fprintf(stderr, "line %d of %s: height is %d\n",
- lineNum, fileName, h);
- abort();
- }
- return Tk_GetPixmap(display, drawable, w, h, depth);
-}