[libbluray-devel] Java 7 awt fixes

hpi1 git at videolan.org
Wed Mar 6 14:03:45 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Mar  6 13:58:39 2013 +0200| [7fb10b468e32919a5f3aa79ccc361363c6b8fb76] | committer: hpi1

Java 7 awt fixes

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=7fb10b468e32919a5f3aa79ccc361363c6b8fb76
---

 src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java |    2 ++
 src/libbluray/bdj/java/java/awt/BDRootWindow.java    |    1 +
 2 files changed, 3 insertions(+)

diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
index 278dba1..918c511 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
@@ -87,6 +87,8 @@ class BDGraphics extends Graphics2D implements ConstrainableGraphics {
         actualClip = g.clip;
         clip = g.clip;
         constrainedRect = g.constrainedRect;
+        if (clip == null)
+            setupClip();
     }
 
     BDGraphics(BDRootWindow window) {
diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index e3b0171..21fcfc5 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -30,6 +30,7 @@ public class BDRootWindow extends Frame {
 
     public BDRootWindow () {
         super();
+        setUndecorated(true);
         setBackground(new Color(0, 0, 0, 0));
         BDToolkit.setFocusedWindow(this);
     }



More information about the libbluray-devel mailing list