Skip to content

Commit 0f0a33a

Browse files
committed
only set apple.awt.graphics.UseQuartz on osx, otherwise security error
(bug #976)
1 parent 40a5168 commit 0f0a33a

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6323,7 +6323,11 @@ public void componentResized(ComponentEvent e) {
63236323
*/
63246324
static public void main(String args[]) {
63256325
// Disable abyssmally slow Sun renderer on OS X 10.5.
6326-
System.setProperty("apple.awt.graphics.UseQuartz", "true");
6326+
if (platform == MACOSX) {
6327+
// Only run this on OS X otherwise it can cause a permissions error.
6328+
// http://dev.processing.org/bugs/show_bug.cgi?id=976
6329+
System.setProperty("apple.awt.graphics.UseQuartz", "true");
6330+
}
63276331

63286332
if (args.length < 1) {
63296333
System.err.println("Usage: PApplet <appletname>");
@@ -7344,7 +7348,7 @@ public void setMatrix(PMatrix source) {
73447348
}
73457349

73467350

7347-
public void setMatrix(PMatrix2D source) {
7351+
public void setMatrix(PMatrix2D source) {
73487352
if (recorder != null) recorder.setMatrix(source);
73497353
g.setMatrix(source);
73507354
}
@@ -7420,8 +7424,8 @@ public void perspective(float fovy, float aspect, float zNear, float zFar) {
74207424
}
74217425

74227426

7423-
public void frustum(float left, float right,
7424-
float bottom, float top,
7427+
public void frustum(float left, float right,
7428+
float bottom, float top,
74257429
float near, float far) {
74267430
if (recorder != null) recorder.frustum(left, right, bottom, top, near, far);
74277431
g.frustum(left, right, bottom, top, near, far);

core/todo.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
0154 core
2+
X only set apple.awt.graphics.UseQuartz on osx, otherwise security error
3+
X http://dev.processing.org/bugs/show_bug.cgi?id=976
4+
5+
_ remove copy() from PVector?
6+
_ add mult() and div() with vector inputs?
27

38

49
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

todo.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ X rename main tab (sketch) to "something" (without ".java")
1212
X the contents in the files are not the same, but the main-tab is
1313
X showing the contents of the .java tab, so if you press save
1414
X you will overwrite your original code from the main-tab.
15+
X problems with Windows PATH prevent sketch from running
16+
X http://dev.processing.org/bugs/show_bug.cgi?id=974
1517

1618
_ com.sun.jdi.AbsentInformationException when running a sketch
1719
_ http://dev.processing.org/bugs/show_bug.cgi?id=971
1820

1921
_ move library examples to the examples menu
20-
_ http://dev.processing.org/bugs/show_bug.cgi?id=974
2122

2223
cleaning
2324
X processing cancels shutdown on mac os x
@@ -36,6 +37,8 @@ X http://dev.processing.org/bugs/show_bug.cgi?id=669
3637
o simulate this by removing qtjava.zip, then make a handler for it
3738
o which will open the reference for it
3839
X use the registry key, and warn the user when it's not there
40+
X mouse wheel broken in the text editor? (windows jdk 1.5?)
41+
X http://dev.processing.org/bugs/show_bug.cgi?id=24
3942

4043

4144
_ don't open more than one "create font" or "color selector"
@@ -659,8 +662,6 @@ _ when running with external editor, hide the editor text area
659662
_ http://dev.processing.org/bugs/show_bug.cgi?id=20
660663
_ horizontal scroller gets weird sometimes
661664
_ http://dev.processing.org/bugs/show_bug.cgi?id=23
662-
_ mouse wheel broken in the text editor? (windows jdk 1.5?)
663-
_ http://dev.processing.org/bugs/show_bug.cgi?id=24
664665
_ lock the minimum size for the main processing editor frame
665666
_ if it's made too small, stuff from the bottom disappears
666667
_ http://dev.processing.org/bugs/show_bug.cgi?id=25

0 commit comments

Comments
 (0)