summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoye <joye>2014-06-18 16:56:39 (GMT)
committerjoye <joye>2014-06-18 16:56:39 (GMT)
commitc16f8562a1a82149ab5a19c478a00ab5c1296805 (patch)
tree2a1b0a50694f949aa5276b14ae3679e7f2dc945a
parentbe7cec37a5516852118d4f33bd8b7329acfd8106 (diff)
downloadblt-c16f8562a1a82149ab5a19c478a00ab5c1296805.zip
blt-c16f8562a1a82149ab5a19c478a00ab5c1296805.tar.gz
blt-c16f8562a1a82149ab5a19c478a00ab5c1296805.tar.bz2
*** empty log message ***
-rw-r--r--src/bltGrElemLine.C16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index 0427f2b..420eb94 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -32,6 +32,8 @@
#include <stdlib.h>
#include <string.h>
+#include <X11/Xlib.h>
+
#include "bltGraph.h"
#include "bltSpline.h"
#include "bltGrElemLine.h"
@@ -42,6 +44,16 @@
#include "bltConfig.h"
#include "bltGrPs.h"
+#ifdef MAC_OSX_TK
+extern void XFillArcs(Display *display, Drawable d, GC gc, XArc *arcs, int
+ narcs);
+extern void XDrawArcs(Display *display, Drawable d, GC gc, XArc *arcs, int
+ narcs);
+extern void XDrawRectangles(Display *display, Drawable d, GC gc,
+ XRectangle *rectangles, int nrectangles);
+extern long XMaxRequestSize(Display *display);
+#endif
+
using namespace Blt;
#define SEARCH_X 0
@@ -1978,8 +1990,10 @@ long LineElement::maxRequestSize(Display* display, size_t elemSize)
long maxSizeBytes = 0L;
if (maxSizeBytes == 0L) {
- long size;
+ long size =0;
+#ifndef MAC_OSX_TK
size = XExtendedMaxRequestSize(display);
+#endif
if (size == 0) {
size = XMaxRequestSize(display);
}