diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gnu/java/awt/peer/gtk/GtkComponentPeer.java | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-12-05 Roman Kennke <kennke@aicas.com> + + (paintComponent): Include paint area from event. + (updateComponent): Include paint area from event. + 2006-12-06 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/ScrollPane.java (addNotify): Add a parent panel for any diff --git a/gnu/java/awt/peer/gtk/GtkComponentPeer.java b/gnu/java/awt/peer/gtk/GtkComponentPeer.java index ca992b215..b1ef09d6e 100644 --- a/gnu/java/awt/peer/gtk/GtkComponentPeer.java +++ b/gnu/java/awt/peer/gtk/GtkComponentPeer.java @@ -313,6 +313,10 @@ public class GtkComponentPeer extends GtkGenericPeer // seems expensive. However, the graphics state does not carry // over between calls to paint, and resetting the graphics object // may even be more costly than simply creating a new one. + + // Make sure that the paintArea includes the area from the event + // in the case when an application sends PaintEvents directly. + coalescePaintEvent(event); Rectangle paintArea; synchronized (this) { @@ -345,6 +349,9 @@ public class GtkComponentPeer extends GtkGenericPeer || (awtComponent.getWidth() < 1 || awtComponent.getHeight() < 1)) return; + // Make sure that the paintArea includes the area from the event + // in the case when an application sends PaintEvents directly. + coalescePaintEvent(event); Rectangle paintArea; synchronized (this) { |