[oe-commits] Robert Schuster : classpath 0.97.2: Added patch to fix to fix drawPolyline bug.

GIT User account git at amethyst.openembedded.net
Wed Oct 15 12:35:44 UTC 2008


Module: org.openembedded.dev.git
Branch: org.openembedded.dev
Commit: 98cc7009116b255ae489246949367d22eb98b1b3
URL:    http://gitweb.openembedded.net/?p=org.openembedded.dev.git&a=commit;h=98cc7009116b255ae489246949367d22eb98b1b3

Author: Robert Schuster <rschus at entw2.(none)>
Date:   Wed Oct 15 14:30:56 2008 +0200

classpath 0.97.2: Added patch to fix to fix drawPolyline bug.

---

 .../classpath/classpath-0.97.2/drawpolyline.patch  |   26 ++++++++++++++++++++
 packages/classpath/classpath_0.97.2.bb             |    3 +-
 2 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/packages/classpath/classpath-0.97.2/drawpolyline.patch b/packages/classpath/classpath-0.97.2/drawpolyline.patch
new file mode 100644
index 0000000..407f991
--- /dev/null
+++ b/packages/classpath/classpath-0.97.2/drawpolyline.patch
@@ -0,0 +1,26 @@
+Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java
+===================================================================
+RCS file: /sources/classpath/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,v
+retrieving revision 1.73
+diff -u -r1.73 CairoGraphics2D.java
+--- gnu/java/awt/peer/gtk/CairoGraphics2D.java	8 Feb 2008 22:17:39 -0000	1.73
++++ gnu/java/awt/peer/gtk/CairoGraphics2D.java	14 Oct 2008 06:50:57 -0000
+@@ -1246,7 +1246,10 @@
+ 
+   public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
+   {
+-    draw(new Polygon(xPoints, yPoints, nPoints));
++		for (int i = 1; i < nPoints; i++)
++	  	draw(new Line2D.Double(
++						xPoints[i - 1], yPoints[i - 1],
++						xPoints[i], yPoints[i]));
+   }
+ 
+   public void drawOval(int x, int y, int width, int height)
+@@ -2171,4 +2174,4 @@
+     
+     return new Rectangle2D.Double(minX, minY, (maxX - minX), (maxY - minY));
+   }
+-}
+\ No newline at end of file
++}
diff --git a/packages/classpath/classpath_0.97.2.bb b/packages/classpath/classpath_0.97.2.bb
index 242bab9..a6327d3 100644
--- a/packages/classpath/classpath_0.97.2.bb
+++ b/packages/classpath/classpath_0.97.2.bb
@@ -8,9 +8,10 @@ SRC_URI += "\
   file://autotools.patch;patch=1 \
   file://decimalformat.patch;patch=1 \
   file://cp-byte-loophelper.patch;patch=1;pnum=0 \
+  file://drawpolyline.patch;patch=1;pnum=0 \
   "
 
-PR = "r4"
+PR = "r5"
 
 DEPENDS += "gtk+ gconf libxtst"
 





More information about the Openembedded-commits mailing list