2000-01-25 02:35:00 +00:00
|
|
|
--- src/lib/IV-2_6/xpainter.c.orig Tue Oct 20 05:32:42 1992
|
|
|
|
+++ src/lib/IV-2_6/xpainter.c Sun Jan 23 18:46:22 2000
|
1999-01-26 02:40:32 +00:00
|
|
|
@@ -56,6 +56,7 @@
|
|
|
|
#include <OS/math.h>
|
|
|
|
#include <OS/string.h>
|
|
|
|
#include <OS/table2.h>
|
|
|
|
+#include <InterViews/_names.h>
|
|
|
|
|
|
|
|
PainterRep::PainterRep() {
|
|
|
|
display = Session::instance()->default_display();
|
2000-01-25 02:35:00 +00:00
|
|
|
@@ -1117,6 +1118,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
void Painter::Polygon(Canvas* c, IntCoord x[], IntCoord y[], int n) {
|
|
|
|
+ register int i;
|
|
|
|
if (c == nil) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
@@ -1125,7 +1127,7 @@
|
1999-12-29 07:47:39 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
register XPoint* v = AllocPts(n+1);
|
|
|
|
- for (register int i = 0; i < n; i++) {
|
|
|
|
+ for (i = 0; i < n; i++) {
|
|
|
|
Map(c, x[i], y[i], v[i].x, v[i].y);
|
|
|
|
}
|
|
|
|
if (x[i-1] != x[0] || y[i-1] != y[0]) {
|