diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 323ef3fc9..4fc95bd2c 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -7,6 +7,23 @@ releases will be super crusty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +ABOUT REV 0095 - 2 November 2005 + +single tweak to undo a failed bug fix in 0094. + + +[ bug un-fixes ] + +- width, height are set to zero in static mode apps. there was an + attempt to fix this for rev 0094, but that backfired and broke more + things than it fixed, so the change has been removed and i'm + re-releasing as 0095. the bug has now been filed for a later release: + http://dev.processing.org/bugs/show_bug.cgi?id=198 + + +. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + ABOUT REV 0094 - 31 October 2005 diff --git a/core/PApplet.java b/core/PApplet.java index 17a889c6d..07e34d2c4 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -165,7 +165,7 @@ public class PApplet extends Applet * true if no size() command has been executed. This is used to wait until * a size has been set before placing in the window and showing it. */ - protected boolean defaultSize; + //protected boolean defaultSize; /** * Pixel buffer from this applet's PGraphics. @@ -448,10 +448,10 @@ public class PApplet extends Applet // create a dummy graphics context size(DEFAULT_WIDTH, DEFAULT_HEIGHT); //size(INITIAL_WIDTH, INITIAL_HEIGHT); - //width = 0; // use this to flag whether the width/height are valid - //height = 0; + width = 0; // use this to flag whether the width/height are valid + height = 0; // need to set width/height otherwise they won't work for static mode apps - defaultSize = true; + //defaultSize = true; // this is automatically called in applets // though it's here for applications anyway @@ -795,7 +795,7 @@ public class PApplet extends Applet this.width = iwidth; this.height = iheight; - defaultSize = false; + //defaultSize = false; // make the applet itself larger.. it's a subclass of Component, // so this is important for when it's embedded inside another app. @@ -5494,8 +5494,8 @@ v PApplet.this.stop(); // wait until the applet has figured out its width // hoping that this won't hang if the applet has an exception - //while ((applet.width == 0) && !applet.finished) { - while (applet.defaultSize && !applet.finished) { + while ((applet.width == 0) && !applet.finished) { + //while (applet.defaultSize && !applet.finished) { try { Thread.sleep(5); diff --git a/core/todo.txt b/core/todo.txt index 4e4f4e65d..f61b45a5a 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,7 +1,11 @@ 0095 core -_ sketches won't run in some cases -_ http://dev.processing.org/bugs/show_bug.cgi?id=195 +X undo the fix that causes the width/height to be properly set +_ width, height set to zero in static mode +_ probably only set when resize() is called, and it's not happening +_ be careful when fixing this, bugs 195/197 were a result +_ http://dev.processing.org/bugs/show_bug.cgi?id=195 +_ http://dev.processing.org/bugs/show_bug.cgi?id=197 _ when using PGraphics, must call beginFrame() and endFrame() _ also need to be able to turn off MemoryImageSource on endFrame diff --git a/todo.txt b/todo.txt index c5a7ee60a..361d8afad 100644 --- a/todo.txt +++ b/todo.txt @@ -13,6 +13,7 @@ _ check into bug where applet crashing if image not available _ probably need to add a hint() to make things not halt _ hack the image exporting stuff into p5 _ check into loadImage() with jars bug, very frustrating +_ when using loadImage() on a jar, turn off "no cache" option? _ threading bug with sonia and rev 91 _ file a feature request for command line support @@ -57,6 +58,8 @@ _ questions like 'how do i do x' are often solved by looking at the api _ for instance, to get the framerate, use framerate() other faq +_ how to change presentation mode background color +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1130781367;start=2#2 _ why adding .0001 to a float doesn't work _ and how they're imprecise in general (use nf) _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1130877990