mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
looking into Windows 8 MovieMaker issue
This commit is contained in:
@@ -2,6 +2,7 @@ package processing.app.tools;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import processing.app.Base;
|
||||
import processing.app.Editor;
|
||||
|
||||
|
||||
@@ -20,15 +21,21 @@ public class MovieMaker implements Tool {
|
||||
|
||||
|
||||
public void run() {
|
||||
String classPath =
|
||||
getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
|
||||
System.out.println("cp is " + classPath);
|
||||
try {
|
||||
Runtime.getRuntime().exec(new String[] {
|
||||
"java", "-cp", classPath, "processing.app.tools.MovieMakerFrame"
|
||||
});
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
if (Base.isMacOS()) {
|
||||
// For OS X, run out of process, so that Quaqua doesn't hose the layout.
|
||||
// http://code.google.com/p/processing/issues/detail?id=836
|
||||
String classPath =
|
||||
getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
|
||||
try {
|
||||
Runtime.getRuntime().exec(new String[] {
|
||||
"java", "-cp", classPath, "processing.app.tools.MovieMakerFrame"
|
||||
});
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
System.out.println("null frame, yeah baby");
|
||||
MovieMakerFrame.main(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
0216 core
|
||||
|
||||
_ Add clear() to replace background(0, 0, 0, 0)
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1446
|
||||
|
||||
_ implement mousePressed(Event) etc
|
||||
_ better to do this instead of bringing back the magic event
|
||||
|
||||
Reference in New Issue
Block a user