diff --git a/core/src/processing/core/PGraphicsJava2D.java b/core/src/processing/core/PGraphicsJava2D.java index a2828d08a..a42f1ea3f 100644 --- a/core/src/processing/core/PGraphicsJava2D.java +++ b/core/src/processing/core/PGraphicsJava2D.java @@ -1301,6 +1301,11 @@ public class PGraphicsJava2D extends PGraphics { } if (who.modified) { + if (who.pixels == null) { + // This might be a PGraphics that hasn't been drawn to yet, bail out. + // https://github.com/processing/processing/issues/2208 + return; + } cash.update(who, tint, tintColor); who.modified = false; } diff --git a/core/todo.txt b/core/todo.txt index 99af134bb..5b83b8774 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -6,6 +6,8 @@ X move to native OS X full screen (gets rid of native code) X https://github.com/processing/processing/issues/2641 X do bounds check on setVertex(PVector) X https://github.com/processing/processing/issues/2556 +X using createGraphics() w/o begin/endDraw(), don't attempt drawing w/ image() +X https://github.com/processing/processing/issues/2208 data X add copy() method to Table diff --git a/todo.txt b/todo.txt index 5b314b368..d9f249bb2 100644 --- a/todo.txt +++ b/todo.txt @@ -33,6 +33,11 @@ X https://github.com/processing/processing/issues/2656 X add a new pref for the 3.0 sketchbook location X if Server constructor fails, throw an exception X https://github.com/processing/processing/issues/2604 +o check on why 2x core.jar inside the Java folder +o maybe OS X Java can't look in subfolders? (just auto-adds things) +o https://github.com/processing/processing/issues/2344 +X one is used by the PDE, the other is used as a library +_ changing the mode on an untitled, unmodified sketch removes untitled status _ when renaming a tab, include the previous name to be edited gsoc @@ -109,8 +114,6 @@ _ http://www.java2s.com/Code/Java/Network-Protocol/DetectProxySettingsforInter medium _ possibility of libraries folder inside a particular sketch? -_ check on why 2x core.jar inside the Java folder -_ maybe OS X Java can't look in subfolders? (just auto-adds things) _ display "1" is not correct in 2.1.2 _ https://github.com/processing/processing/issues/2502 _ re/move things from Google Code downloads