[libbluray-devel] Fixed "java.lang.UnsupportedOperationException: PERPIXEL_TRANSLUCENT translucency is not supported"

hpi1 git at videolan.org
Fri May 10 14:30:55 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 10 15:25:52 2013 +0300| [a594d770726518f7101acaaea324e9e1e81f4ab6] | committer: hpi1

Fixed "java.lang.UnsupportedOperationException: PERPIXEL_TRANSLUCENT translucency is not supported"

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

 src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java |    5 +++++
 src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java             |    5 +++++
 2 files changed, 10 insertions(+)

diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
index 04b1c5d..690425d 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
@@ -103,4 +103,9 @@ class BDGraphicsConfiguration extends GraphicsConfiguration {
         org.videolan.Logger.unimplemented("BDGraphicsConfiguration", "getImageCapabilities");
         return super.getImageCapabilities();
     }
+
+    /* J2SE java 6 */
+    boolean isTranslucencyCapable() {
+        return true;
+    }
 }
diff --git a/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java b/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java
index c005962..c236419 100644
--- a/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java
+++ b/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java
@@ -59,4 +59,9 @@ class BDGraphicsDevice extends GraphicsDevice {
 
     public void setFullScreenWindow(Window window) {
     }
+
+    /* J2SE java 7 */
+    boolean isWindowTranslucencySupported(GraphicsDevice.WindowTranslucency translucencyKind) {
+        return true;
+    }
 }



More information about the libbluray-devel mailing list