diff options
author | lofi <lofi@FreeBSD.org> | 2004-08-01 18:53:24 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2004-08-01 18:53:24 +0800 |
commit | 76b6cd80f1b62647b2e1cbebd84ad632616897e8 (patch) | |
tree | 97cbc013162f4374f5fb9a71011ed3dd0ef9ade9 /multimedia | |
parent | 68c73d1967af97f8448f66d9ecac4e1c2a05c84d (diff) | |
download | freebsd-ports-gnome-76b6cd80f1b62647b2e1cbebd84ad632616897e8.tar.gz freebsd-ports-gnome-76b6cd80f1b62647b2e1cbebd84ad632616897e8.tar.zst freebsd-ports-gnome-76b6cd80f1b62647b2e1cbebd84ad632616897e8.zip |
Fix build with gcc 3.4.
Obtained from: KDE CVS
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/noatun-plugins/files/patch-noatun-plugins_synaescope_polygon.h | 32 | ||||
-rw-r--r-- | multimedia/noatun-plugins/files/patch-noatun-plugins_tippercanoe_polygon.h | 32 |
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] */ |