[libbluray-devel] BDGraphics: make deep copy of clipping rectangles
hpi1
git at videolan.org
Sun Mar 23 22:45:39 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Mar 23 23:28:57 2014 +0200| [d646e01c69f888ac8399fdf90fd3e072548632a2] | committer: hpi1
BDGraphics: make deep copy of clipping rectangles
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d646e01c69f888ac8399fdf90fd3e072548632a2
---
src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
index 714b67c..2545d29 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
@@ -87,10 +87,13 @@ class BDGraphics extends Graphics2D implements ConstrainableGraphics {
originX = g.originX;
originY = g.originY;
actualClip = g.actualClip;
- clip = g.clip;
- constrainedRect = g.constrainedRect;
- if (clip == null)
- setupClip();
+ if (g.clip != null) {
+ clip = new Rectangle(g.clip);
+ }
+ if (g.constrainedRect != null) {
+ constrainedRect = new Rectangle(g.constrainedRect);
+ }
+ setupClip();
}
BDGraphics(BDRootWindow window) {
More information about the libbluray-devel
mailing list