[libbluray-devel] Set java.awt.graphicsenv property to java.awt.BDGraphicsEnvironment

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


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 10 14:57:15 2013 +0300| [aaf7bc37dfca76614e6e94ba2bf167fa834fd2d8] | committer: hpi1

Set java.awt.graphicsenv property to java.awt.BDGraphicsEnvironment
(J2ME 1.4 uses toolkit function to get GraphicsEnvironment. J2SE 1.6+ seems to use this property instead of toolkit.)

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

 src/libbluray/bdj/bdj.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index abbe10e..837b24d 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -290,6 +290,7 @@ BDJAVA* bdj_open(const char *path, struct bluray *bd,
     option[n++].optionString = str_printf("-Dbluray.bindingunit.root=%s", _bdj_buda_root());
 
     option[n++].optionString = str_dup   ("-Dawt.toolkit=java.awt.BDToolkit");
+    option[n++].optionString = str_dup   ("-Djava.awt.graphicsenv=java.awt.BDGraphicsEnvironment");
     option[n++].optionString = str_printf("-Xbootclasspath/p:%s", _find_libbluray_jar());
     option[n++].optionString = str_dup   ("-Xms256M");
     option[n++].optionString = str_dup   ("-Xmx256M");



More information about the libbluray-devel mailing list