Skip to content

Commit d9a98a1

Browse files
committed
Merge remote-tracking branch 'upstream/master'
as per request #2172
2 parents 1497d42 + 5527695 commit d9a98a1

File tree

15 files changed

+257
-117
lines changed

15 files changed

+257
-117
lines changed

app/src/processing/app/Base.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
public class Base {
4747
// Added accessors for 0218 because the UpdateCheck class was not properly
4848
// updating the values, due to javac inlining the static final values.
49-
static private final int REVISION = 223;
49+
static private final int REVISION = 224;
5050
/** This might be replaced by main() if there's a lib/version.txt file. */
51-
static private String VERSION_NAME = "0223"; //$NON-NLS-1$
51+
static private String VERSION_NAME = "0224"; //$NON-NLS-1$
5252
/** Set true if this a proper release rather than a numbered revision. */
5353
// static private boolean RELEASE = false;
5454

@@ -1592,7 +1592,7 @@ static public String getPlatformName() {
15921592
}
15931593

15941594

1595-
// Because the Oracle JDK is 64-bit only, we lose this ability, feature,
1595+
// Because the Oracle JDK is 64-bit only, we lose this ability, feature,
15961596
// edge case, headache.
15971597
// /**
15981598
// * Return whether sketches will run as 32- or 64-bits. On Linux and Windows,
@@ -1605,10 +1605,10 @@ static public String getPlatformName() {
16051605
// }
16061606
// return nativeBits;
16071607
// }
1608-
1609-
/**
1610-
* Return whether sketches will run as 32- or 64-bits based
1611-
* on the JVM that's in use.
1608+
1609+
/**
1610+
* Return whether sketches will run as 32- or 64-bits based
1611+
* on the JVM that's in use.
16121612
*/
16131613
static public int getNativeBits() {
16141614
return nativeBits;

build/build.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,23 @@
10351035
${windows.dist}
10361036
=======================================================
10371037
</echo>
1038+
</target>
1039+
1040+
1041+
<!-- - - - - - - - - - - - - - - - - - -->
1042+
<!-- Package source 'n tag the release -->
1043+
<!-- - - - - - - - - - - - - - - - - - -->
1044+
1045+
<!--
1046+
not ready to automate this yet, since we often have to reset the tag
1047+
<target name="dist-src" depends="dist">
1048+
<exec executable="git">
1049+
remove the spaces for depth since it should be double dash, but screws up comments
1050+
<arg line="clone - -depth 1 git@github.com:processing/processing.git /tmp/processing-${version}-src" />
1051+
</exec>
10381052
</target>
1039-
1053+
-->
1054+
10401055

10411056
<!-- - - - - - - - - -->
10421057
<!-- Developer Docs -->

build/shared/lib/defaults.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
# You'll have problems running Processing if you incorrectly
2727
# modify lines in this file. It will probably not start at all.
2828

29+
# AGAIN, DO NOT ALTER THIS FILE! I'M ONLY YELLING BECAUSE I LOVE YOU!
30+
2931

3032
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3133

@@ -265,18 +267,18 @@ editor.token.invalid.style = #666666,bold
265267

266268

267269
# which platforms to export by default
268-
export.application.platform.windows = true
269-
export.application.platform.macosx = true
270-
export.application.platform.linux = true
270+
#export.application.platform.windows = true
271+
#export.application.platform.macosx = true
272+
#export.application.platform.linux = true
271273

272274
# whether or not to export as full screen (present) mode
273275
export.application.fullscreen = false
274276

275277
# whether to show the stop button when exporting to application
276278
export.application.stop = true
277279

278-
# false will place all exported files into a single .jar
279-
#export.applet.separate_jar_files = false
280+
# embed Java by default for lower likelihood of problems
281+
export.application.embed_java = true
280282

281283
# set to false to no longer delete applet or application folders before export
282284
export.delete_target_folder = true

build/shared/revisions.txt

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
PROCESSING 2.1 beta 2 (REV 0223) - 2X October 2013
1+
PROCESSING 2.1 (REV 0223) - 27 October 2013
2+
3+
There have been major changes since 2.0.3, most of them are outlined in
4+
the release notes for 2.1 beta 1 (look down a few dozen lines).
5+
6+
This release includes a few updates to fix problems introduced in the beta
7+
release, as well as additional general bug fixes, especially for OpenGL.
28

39
+ Added an option to not embed the Java runtime into an exported application.
410
This saves you the 100 MB footprint, but requires your users to install
@@ -31,6 +37,64 @@ PROCESSING 2.1 beta 2 (REV 0223) - 2X October 2013
3137
object), we've added code so that println() works as before. But we
3238
can't do the same for arrays of objects, such as String.
3339

40+
+ The preference for font smoothing (anti-aliasing) in the editor has been
41+
reset in this release. Fonts are unusably gross on OS X (and Linux)
42+
without smoothing and Oracle's version of Java (now in use with 2.1),
43+
and many longtime users have anti-aliasing turned off. You can still
44+
turn off smoothing in the Preferences window, but the results may be poor.
45+
https://github.com/processing/processing/issues/2164
46+
https://github.com/processing/processing/issues/2160
47+
48+
49+
[ bug fixes ]
50+
51+
+ Fix dataPath() problem with OS X (was breaking Movie on export)
52+
53+
+ Command line processing-java was broken in 2.1 beta 1 on OS X
54+
https://github.com/processing/processing/issues/2159
55+
56+
+ Fix a situation where processing-java would return 0 instead of 1 on errors
57+
https://github.com/processing/processing/issues/1798#issuecomment-26711847
58+
59+
+ Alpha values from the pixels array were coming back as 0
60+
https://github.com/processing/processing/issues/2030
61+
62+
+ Additional UI font tweaks due to decreased legibility with Oracle Java
63+
https://github.com/processing/processing/issues/2135
64+
65+
66+
[ OpenGL updates ]
67+
68+
+ Using sketchQuality() does not work properly with P3D, OPENGL, P2D
69+
https://github.com/processing/processing/pull/2157
70+
71+
+ Fix crashes when the sketch window is resized
72+
https://github.com/processing/processing/issues/1880
73+
https://github.com/processing/processing/pull/2156
74+
75+
+ scale() wasn't affecting stroke weight in P3D
76+
https://github.com/processing/processing/issues/2162
77+
78+
+ Add set(boolean) to PShader
79+
https://github.com/processing/processing/issues/1991
80+
https://github.com/processing/processing/pull/1993
81+
82+
+ Add PMatrix.preApply(PMatrix)
83+
https://github.com/processing/processing/pull/2146
84+
https://github.com/processing/processing/issues/2145
85+
86+
+ Updated to another version of JOGL (jogl-2.1-b1115, gluegen-2.1-b735)
87+
for OS X 10.9 support.
88+
89+
+ Add warning when no uv texture coordinates are supplied
90+
https://github.com/processing/processing/issues/2034
91+
92+
+ Flicker issues when resizing P2D/P3D/OPENGL
93+
https://github.com/processing/processing/issues/15
94+
95+
+ Additional fix for occasional flash/flicker with drawing complex scenes
96+
https://github.com/processing/processing/commit/cca2f08a24ef892c494f5a75aa0e4b01de7e5d8a
97+
3498

3599
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
36100

core/done.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
0223 core (2.1)
2+
X fix dataPath() problem with OS X (was breaking Movie)
3+
X alpha values from the pixels array coming back as 0
4+
X only tested on background(), not image()
5+
X https://github.com/processing/processing/issues/2030
6+
7+
opengl
8+
X Using sketchQuality() does not work properly with P3D, OPENGL, P2D
9+
X https://github.com/processing/processing/pull/2157
10+
X Fix crashes when the sketch window is resized
11+
X https://github.com/processing/processing/issues/1880
12+
X https://github.com/processing/processing/pull/2156
13+
X scale() wasn't affecting stroke weight in P3D
14+
X https://github.com/processing/processing/issues/2162
15+
X add set(boolean) to PShader
16+
X https://github.com/processing/processing/issues/1991
17+
X https://github.com/processing/processing/pull/1993
18+
X add PMatrix.preApply(PMatrix)
19+
X https://github.com/processing/processing/pull/2146
20+
X https://github.com/processing/processing/issues/2145
21+
X updated to another version of JOGL
22+
X updated to jogl-2.1-b1115, gluegen-2.1-b735 for OSX 10.9 support
23+
X Add warning when no uv texture coordinates are supplied
24+
X https://github.com/processing/processing/issues/2034
25+
X threading/flicker issues when resizing P2D/P3D/OPENGL
26+
X https://github.com/processing/processing/issues/15
27+
X additional flicker avoidance
28+
X https://github.com/processing/processing/commit/cca2f08a24ef892c494f5a75aa0e4b01de7e5d8a
29+
30+
131
0222 core (2.1b1)
232
X background color for present mode has no effect
333
X https://github.com/processing/processing/issues/2071

core/src/processing/core/PApplet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7844,7 +7844,7 @@ static public String desktopPath(String what) {
78447844
* This is only available with applications, not applets or Android.
78457845
* On Windows and Linux, this is simply the data folder, which is located
78467846
* in the same directory as the EXE file and lib folders. On Mac OS X, this
7847-
* is a path to the data folder buried inside Contents/Resources/Java.
7847+
* is a path to the data folder buried inside Contents/Java.
78487848
* For the latter point, that also means that the data folder should not be
78497849
* considered writable. Use sketchPath() for now, or inputPath() and
78507850
* outputPath() once they're available in the 2.0 release.
@@ -7871,11 +7871,12 @@ public File dataFile(String where) {
78717871

78727872
String jarPath =
78737873
getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
7874-
if (jarPath.contains("Contents/Resources/Java/")) {
7874+
if (jarPath.contains("Contents/Java/")) {
78757875
// The path will be URL encoded (%20 for spaces) coming from above
78767876
// http://code.google.com/p/processing/issues/detail?id=1073
78777877
File containingFolder = new File(urlDecode(jarPath)).getParentFile();
78787878
File dataFolder = new File(containingFolder, "data");
7879+
System.out.println(dataFolder);
78797880
return new File(dataFolder, where);
78807881
}
78817882
// Windows, Linux, or when not using a Mac OS X .app file
@@ -7885,7 +7886,7 @@ public File dataFile(String where) {
78857886

78867887
/**
78877888
* On Windows and Linux, this is simply the data folder. On Mac OS X, this is
7888-
* the path to the data folder buried inside Contents/Resources/Java
7889+
* the path to the data folder buried inside Contents/Java
78897890
*/
78907891
// public File inputFile(String where) {
78917892
// }

0 commit comments

Comments
 (0)