This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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);
   }

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]