diff options
author | Mark Wielaard <mark@klomp.org> | 2006-12-08 09:24:31 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2006-12-08 09:24:31 +0000 |
commit | 908637946b0d2306d9f080af6af81cc6b45779eb (patch) | |
tree | 4fa8b7bf2e12711d504f180239dcf71ddd003b5b | |
parent | 5ad612425520b68d0df0f3d45ad1e533ce6e0676 (diff) | |
download | classpath-908637946b0d2306d9f080af6af81cc6b45779eb.tar.gz |
2006-12-05 Roman Kennke <kennke@aicas.com>
(paintComponent): Include paint area from event.
(updateComponent): Include paint area from event.
-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) { |