1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-toolkits/iv/files/patch-ar

28 lines
722 B
Plaintext
Raw Normal View History

--- 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]) {