mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
bf57334ca0
- The maintainer is now a committer. Reviewed by: Kim Culhan <kimc@w8hd.org>
28 lines
722 B
Plaintext
28 lines
722 B
Plaintext
--- 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
|
|
@@ -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();
|
|
@@ -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 @@
|
|
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]) {
|