aboutsummaryrefslogtreecommitdiff
path: root/multimedia/noatun-plugins
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-08-01 10:53:24 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-08-01 10:53:24 +0000
commit73792e74c30c7584475d8cf91ed21356aa1d8acb (patch)
treeb463fd4b8ad46e3dbd43c62854c8f639d382562c /multimedia/noatun-plugins
parentfd1b91a94fe129f45ffdd826b2f3242d119042c4 (diff)
downloadports-73792e74c30c7584475d8cf91ed21356aa1d8acb.tar.gz
ports-73792e74c30c7584475d8cf91ed21356aa1d8acb.zip
Notes
Diffstat (limited to 'multimedia/noatun-plugins')
-rw-r--r--multimedia/noatun-plugins/files/patch-noatun-plugins_synaescope_polygon.h32
-rw-r--r--multimedia/noatun-plugins/files/patch-noatun-plugins_tippercanoe_polygon.h32
2 files changed, 64 insertions, 0 deletions
diff --git a/multimedia/noatun-plugins/files/patch-noatun-plugins_synaescope_polygon.h b/multimedia/noatun-plugins/files/patch-noatun-plugins_synaescope_polygon.h
new file mode 100644
index 000000000000..2a6128c31bc5
--- /dev/null
+++ b/multimedia/noatun-plugins/files/patch-noatun-plugins_synaescope_polygon.h
@@ -0,0 +1,32 @@
+===================================================================
+RCS file: /usr/repos/kde/kdeaddons/noatun-plugins/synaescope/polygon.h,v
+retrieving revision 1.4
+retrieving revision 1.4.8.1
+diff -u -p -r1.4 -r1.4.8.1
+--- noatun-plugins/synaescope/polygon.h 2001/04/16 23:20:34 1.4
++++ noatun-plugins/synaescope/polygon.h 2004/06/12 09:54:09 1.4.8.1
+@@ -31,8 +31,8 @@ struct PolygonEngine : public Bitmap<Pix
+ void apply(Pixel *dest)
+ {
+ Pixel sum=0;
+- int count = width*height;
+- Pixel *src = data;
++ int count = this->width*this->height;
++ Pixel *src = this->data;
+ while(count--) {
+ sum += *(src++);
+ if (sum)
+@@ -44,10 +44,10 @@ struct PolygonEngine : public Bitmap<Pix
+ void add(Pixel color,int x,int y)
+ {
+ if (y < 0) return;
+- if (y >= height) return;
++ if (y >= this->height) return;
+ if (x < 0) x = 0;
+- if (x > width) x = width;
+- data[x+y*width] += color;
++ if (x > this->width) x = this->width;
++ this->data[x+y*this->width] += color;
+ }
+
+ /* Color is char[layers] */
diff --git a/multimedia/noatun-plugins/files/patch-noatun-plugins_tippercanoe_polygon.h b/multimedia/noatun-plugins/files/patch-noatun-plugins_tippercanoe_polygon.h
new file mode 100644
index 000000000000..22c8cb3d09c0
--- /dev/null
+++ b/multimedia/noatun-plugins/files/patch-noatun-plugins_tippercanoe_polygon.h
@@ -0,0 +1,32 @@
+===================================================================
+RCS file: /usr/repos/kde/kdeaddons/noatun-plugins/tippercanoe/polygon.h,v
+retrieving revision 1.3
+retrieving revision 1.3.8.1
+diff -u -p -r1.3 -r1.3.8.1
+--- noatun-plugins/tippercanoe/polygon.h 2001/04/16 22:04:03 1.3
++++ noatun-plugins/tippercanoe/polygon.h 2004/06/12 10:05:15 1.3.8.1
+@@ -28,8 +28,8 @@ struct PolygonEngine : public Bitmap<Pix
+ #define super (1<<superSampleShift)
+ void apply(Pixel *dest) {
+ Pixel sum=0;
+- int count = width*height;
+- Pixel *src = data;
++ int count = this->width*this->height;
++ Pixel *src = this->data;
+ while(count--) {
+ sum += *(src++);
+ if (sum)
+@@ -40,10 +40,10 @@ struct PolygonEngine : public Bitmap<Pix
+
+ void add(Pixel color,int x,int y) {
+ if (y < 0) return;
+- if (y >= height) return;
++ if (y >= this->height) return;
+ if (x < 0) x = 0;
+- if (x > width) x = width;
+- data[x+y*width] += color;
++ if (x > this->width) x = this->width;
++ this->data[x+y*this->width] += color;
+ }
+
+ /* Color is char[layers] */