Skip to content

Commit c3d4d8d

Browse files
committed
cursor fix (processing#2358) and svg fix (processing#2377)
1 parent fa838a2 commit c3d4d8d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

core/src/processing/core/PApplet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4324,6 +4324,8 @@ public String insertFrame(String what) {
43244324
* @param kind either ARROW, CROSS, HAND, MOVE, TEXT, or WAIT
43254325
*/
43264326
public void cursor(int kind) {
4327+
// Swap the HAND cursor because MOVE doesn't seem to be available on OS X
4328+
// https://github.com/processing/processing/issues/2358
43274329
if (platform == MACOSX && kind == MOVE) {
43284330
kind = HAND;
43294331
}

core/src/processing/core/PShapeSVG.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ protected void parsePath() {
586586
case 'm': // m - move to (relative)
587587
cx = cx + PApplet.parseFloat(pathTokens[i + 1]);
588588
cy = cy + PApplet.parseFloat(pathTokens[i + 2]);
589+
movetoX = cx;
590+
movetoY = cy;
589591
parsePathMoveto(cx, cy);
590592
implicitCommand = 'l';
591593
i += 3;

core/todo.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ X need to sort out with docs what's happening here
1111
X just a reference issue
1212
X substitute MOVE cursor with HAND on OS X
1313
X https://github.com/processing/processing/issues/2358
14+
X Allow textWidth() with the default font
15+
X https://github.com/processing/processing/issues/2331
16+
X https://github.com/processing/processing/pull/2338
17+
X bug in relative moveto commands for SVG
18+
X https://github.com/processing/processing/issues/2377
1419

1520
cleaning
1621
o how much of com.benfry.* should go in?
@@ -56,14 +61,13 @@ _ modernize Client/Server code to use synchronized lists
5661
_ do we let people use the public vars in Server and Client?
5762
_ are they documented?
5863

59-
_ make join() work with Iterable?
60-
_ will this collide with the current String[] version?
61-
6264

6365
high
6466
_ Sketch runs with default size if size() is followed by large memory allocation
65-
_ https://github.com/processing/processing/issues/2039
67+
_ some sort of threading issue happening here
6668
_ https://github.com/processing/processing/issues/1672
69+
_ https://github.com/processing/processing/issues/2039 (dupe)
70+
_ https://github.com/processing/processing/issues/2294 (dupe)
6771
_ point() rendering differently in 2.0.3 and 2.1
6872
_ https://github.com/processing/processing/issues/2278
6973
_ internally, we probably have to call set() if it's a 1 pixel point
@@ -127,6 +131,8 @@ _ save the constructor for the version that actually copies data
127131
_ the table pointer version will be speedy and allow chaining
128132

129133
decisions/misc
134+
_ make join() work with Iterable?
135+
_ will this collide with the current String[] version?
130136
_ add options for image.save() (or saveImage?)
131137
_ add quality=[0,1] for jpeg images
132138
_ add dpi=[0,n] for for png images

0 commit comments

Comments
 (0)