FYI [gui] Created bitmap should be filled with bg color

Mark Wielaard mark@klomp.org
Sun Nov 7 00:15:00 GMT 2004


Hi,

Sven committed this to GNU Classpath.

2004-11-06  Sven de Marothy <sven@physto.se>

        * gnu/java/awt/peer/gtk/GtkComponentPeer.java
        (createImage): Created bitmap should be filled with bg color

Also committed to the gui branch now.

Cheers,

Mark

--- gnu/java/awt/peer/gtk/GtkComponentPeer.java 6 Nov 2004 23:46:23 -0000      1.16.2.23
+++ gnu/java/awt/peer/gtk/GtkComponentPeer.java 7 Nov 2004 00:12:27 -0000
@@ -217,6 +217,9 @@
     else
       g = new GdkGraphics (width, height);

+    g.setColor(getBackground());
+    g.fillRect(0, 0, width, height);
+
     return new GtkOffScreenImage (null, g, width, height);
   }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041107/0d661a3b/attachment.sig>


More information about the Java-patches mailing list