summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2020-07-22 20:06:54 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2020-07-22 20:06:54 (GMT)
commit562a649a1f5145e6563ca33766d5030c17782006 (patch)
tree9dae88caa104812b1a3bc0941901a37fd39c8748 /generic
parent7f27a43cedb771534c895921dd84eede4cd48874 (diff)
downloadblt-562a649a1f5145e6563ca33766d5030c17782006.zip
blt-562a649a1f5145e6563ca33766d5030c17782006.tar.gz
blt-562a649a1f5145e6563ca33766d5030c17782006.tar.bz2
fix tkblt tests
Diffstat (limited to 'generic')
-rw-r--r--generic/tkbltGrElemLine.C8
-rw-r--r--generic/tkbltGrHairs.h2
-rw-r--r--generic/tkbltGrMisc.h4
3 files changed, 8 insertions, 6 deletions
diff --git a/generic/tkbltGrElemLine.C b/generic/tkbltGrElemLine.C
index 9e3f39a..e8e6413 100644
--- a/generic/tkbltGrElemLine.C
+++ b/generic/tkbltGrElemLine.C
@@ -2009,7 +2009,7 @@ void LineElement::drawSCross(Display* display, Drawable drawable,
{
LinePenOptions* penOps = (LinePenOptions*)penPtr->ops();
- Point pattern[4];
+ Point2d pattern[4];
if (penOps->symbol.type == SYMBOL_SCROSS) {
r2 = (int)(r2 * M_SQRT1_2);
pattern[3].y = pattern[2].x = pattern[0].x = pattern[0].y = -r2;
@@ -2051,7 +2051,7 @@ void LineElement::drawCross(Display *display, Drawable drawable,
* 9 8
*/
int d = (r2 / 3);
- Point pattern[13];
+ Point2d pattern[13];
pattern[0].x = pattern[11].x = pattern[12].x = -r2;
pattern[2].x = pattern[1].x = pattern[10].x = pattern[9].x = -d;
pattern[3].x = pattern[4].x = pattern[7].x = pattern[8].x = d;
@@ -2122,7 +2122,7 @@ void LineElement::drawDiamond(Display *display, Drawable drawable,
* (fifth) point connects the first and
* 3 last points.
*/
- Point pattern[5];
+ Point2d pattern[5];
pattern[1].y = pattern[0].x = -r1;
pattern[2].y = pattern[3].x = pattern[0].y = pattern[1].x = 0;
pattern[3].y = pattern[2].x = r1;
@@ -2184,7 +2184,7 @@ void LineElement::drawArrow(Display *display, Drawable drawable,
* 2 1 last points.
*/
- Point pattern[4];
+ Point2d pattern[4];
if (penOps->symbol.type == SYMBOL_ARROW) {
pattern[3].x = pattern[0].x = 0;
pattern[3].y = pattern[0].y = h1;
diff --git a/generic/tkbltGrHairs.h b/generic/tkbltGrHairs.h
index a86d0c6..e489f79 100644
--- a/generic/tkbltGrHairs.h
+++ b/generic/tkbltGrHairs.h
@@ -56,7 +56,7 @@ namespace Blt {
int visible_;
GC gc_;
- Point segArr_[4];
+ Point2d segArr_[4];
public:
Crosshairs(Graph*);
diff --git a/generic/tkbltGrMisc.h b/generic/tkbltGrMisc.h
index ba86b75..38b78cb 100644
--- a/generic/tkbltGrMisc.h
+++ b/generic/tkbltGrMisc.h
@@ -67,10 +67,12 @@ using namespace std;
namespace Blt {
class Graph;
+ /*
typedef struct {
int x, y;
} Point;
-
+ */
+
typedef struct {
int x, y;
unsigned width, height;