libbluray | branch: master | hpi1 <[email protected]> | Tue Mar 25 21:50:12 2014 +0200| [29ac84180206654ee36c0edc4ffab6b24a62c632] | committer: hpi1
BDGraphics: do not copy constrainedRect from another > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=29ac84180206654ee36c0edc4ffab6b24a62c632 --- src/libbluray/bdj/java-j2me/java/awt/BDGraphics.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libbluray/bdj/java-j2me/java/awt/BDGraphics.java b/src/libbluray/bdj/java-j2me/java/awt/BDGraphics.java index 2d241ff..79c358a 100644 --- a/src/libbluray/bdj/java-j2me/java/awt/BDGraphics.java +++ b/src/libbluray/bdj/java-j2me/java/awt/BDGraphics.java @@ -60,13 +60,13 @@ class BDGraphics extends Graphics2D implements ConstrainableGraphics { /** The current user clip rectangle or null if no clip has been set. This is stored in the native coordinate system and not the (possibly) translated Java coordinate system. */ - private Rectangle clip; + private Rectangle clip = null; /** The rectangle this graphics object has been constrained too. This is stored in the native coordinate system and not the (possibly) translated Java coordinate system. If it is null then this graphics has not been constrained. The constrained rectangle is another layer of clipping independant of the user clip. */ - private Rectangle constrainedRect; + private Rectangle constrainedRect = null; BDGraphics(BDGraphics g) { backBuffer = g.backBuffer; @@ -85,9 +85,6 @@ class BDGraphics extends Graphics2D implements ConstrainableGraphics { if (g.clip != null) { clip = new Rectangle(g.clip); } - if (g.constrainedRect != null) { - constrainedRect = new Rectangle(g.constrainedRect); - } setupClip(); } _______________________________________________ libbluray-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libbluray-devel
