Possible NetGraphics bug

Daniel Zatonyi <[email protected]> Thu, 05 Mar 2015 14:01:59 +0100
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi,

It looks like the current implementation of getBackground() returns the 
foreground color, which I think is a bug. See my patch.

Cheers,
Daniel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
graphics.cs.patch (text/plain, 641 B)
Index: graphics.cs
===================================================================
RCS file: /cvsroot/ikvm/ikvm/awt/graphics.cs,v
retrieving revision 1.75
diff -u -r1.75 graphics.cs
--- graphics.cs	17 Nov 2014 16:46:31 -0000	1.75
+++ graphics.cs	5 Mar 2015 12:49:15 -0000
@@ -1963,7 +1963,7 @@
 
         public override java.awt.Color getBackground()
         {
-            return bgcolor == Color.Empty ? null : new java.awt.Color(color.ToArgb(), true);
+            return bgcolor == Color.Empty ? null : new java.awt.Color(bgcolor.ToArgb(), true);
         }
 
         public override java.awt.Stroke getStroke()