diff options
author | Mark Wielaard <mark@klomp.org> | 2006-06-14 17:23:07 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2006-06-14 17:23:07 +0000 |
commit | 623b775a9dec1fdeda8fd145fd100a3f0ee97605 (patch) | |
tree | e7a2c5c547dd32336d5488b89337f1968fc64776 | |
parent | 0e90014521130d7af9283e7279f94c71f0a8b1e4 (diff) | |
download | classpath-623b775a9dec1fdeda8fd145fd100a3f0ee97605.tar.gz |
* gnu/java/awt/peer/gtk/ComponentGraphics.java (drawLine): Lock and
call super.
(drawRect): Likewise.
(fillRect): Likewise.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gnu/java/awt/peer/gtk/ComponentGraphics.java | 39 |
2 files changed, 46 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2006-06-14 Mark Wielaard <mark@klomp.org> + + * gnu/java/awt/peer/gtk/ComponentGraphics.java (drawLine): Lock and + call super. + (drawRect): Likewise. + (fillRect): Likewise. + 2006-06-14 Lillian Angel <langel@redhat.com> * java/awt/Component.java diff --git a/gnu/java/awt/peer/gtk/ComponentGraphics.java b/gnu/java/awt/peer/gtk/ComponentGraphics.java index d1d3c2804..e49c95f01 100644 --- a/gnu/java/awt/peer/gtk/ComponentGraphics.java +++ b/gnu/java/awt/peer/gtk/ComponentGraphics.java @@ -359,5 +359,44 @@ public class ComponentGraphics extends CairoGraphics2D return super.drawImage(bimg, x, y, width, height, observer); } + public void drawLine(int x1, int y1, int x2, int y2) + { + lock(); + try + { + super.drawLine(x1, y1, x2, y2); + } + finally + { + unlock(); + } + } + + public void drawRect(int x, int y, int width, int height) + { + lock(); + try + { + super.drawRect(x, y, width, height); + } + finally + { + unlock(); + } + } + + public void fillRect(int x, int y, int width, int height) + { + lock(); + try + { + super.fillRect(x, y, width, height); + } + finally + { + unlock(); + } + } + } |