add special case for image() with degenerate PGraphics (fixes #2208)

This commit is contained in:
Ben Fry
2014-07-30 22:03:51 -04:00
parent b7756bcb1f
commit 828cef7fd1
3 changed files with 12 additions and 2 deletions
@@ -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;
}
+2
View File
@@ -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
+5 -2
View File
@@ -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