[libbluray-devel] J2SE/J2ME compability fix (BDGraphicsDevice)
hpi1
git at videolan.org
Wed May 15 11:40:31 CEST 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat May 11 21:45:03 2013 +0300| [23d31a21cc0029e3f84a657ef6258d8e88b15d42] | committer: hpi1
J2SE/J2ME compability fix (BDGraphicsDevice)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=23d31a21cc0029e3f84a657ef6258d8e88b15d42
---
.../bdj/java-j2me/java/awt/BDGraphicsDevice.java | 26 ++++++++++++++++
.../bdj/java-j2se/java/awt/BDGraphicsDevice.java | 31 ++++++++++++++++++++
...aphicsDevice.java => BDGraphicsDeviceImpl.java} | 11 ++-----
3 files changed, 60 insertions(+), 8 deletions(-)
diff --git a/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsDevice.java b/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsDevice.java
new file mode 100644
index 0000000..87c0ddc
--- /dev/null
+++ b/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsDevice.java
@@ -0,0 +1,26 @@
+/*
+ * This file is part of libbluray
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+package java.awt;
+
+class BDGraphicsDevice extends BDGraphicsDeviceImpl {
+
+ BDGraphicsDevice(BDGraphicsEnvironment environment) {
+ super(environment);
+ }
+}
diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsDevice.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsDevice.java
new file mode 100644
index 0000000..d968b46
--- /dev/null
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsDevice.java
@@ -0,0 +1,31 @@
+/*
+ * This file is part of libbluray
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+package java.awt;
+
+class BDGraphicsDevice extends BDGraphicsDeviceImpl {
+
+ BDGraphicsDevice(BDGraphicsEnvironment environment) {
+ super(environment);
+ }
+
+ /* J2SE java 7 */
+ boolean isWindowTranslucencySupported(GraphicsDevice.WindowTranslucency translucencyKind) {
+ return true;
+ }
+}
diff --git a/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java b/src/libbluray/bdj/java/java/awt/BDGraphicsDeviceImpl.java
similarity index 83%
rename from src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java
rename to src/libbluray/bdj/java/java/awt/BDGraphicsDeviceImpl.java
index c236419..a531422 100644
--- a/src/libbluray/bdj/java/java/awt/BDGraphicsDevice.java
+++ b/src/libbluray/bdj/java/java/awt/BDGraphicsDeviceImpl.java
@@ -18,11 +18,11 @@
package java.awt;
-class BDGraphicsDevice extends GraphicsDevice {
+class BDGraphicsDeviceImpl extends GraphicsDevice {
private BDGraphicsConfiguration configuration;
- BDGraphicsDevice(BDGraphicsEnvironment environment) {
- configuration = new BDGraphicsConfiguration(this);
+ BDGraphicsDeviceImpl(BDGraphicsEnvironment environment) {
+ configuration = new BDGraphicsConfiguration((BDGraphicsDevice)this);
}
public int getType() {
@@ -59,9 +59,4 @@ 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