deal with blank screen on returning to sketch (issue #237)

This commit is contained in:
benfry
2011-04-10 21:06:50 +00:00
parent 7550e7aadd
commit a04d0823d6
2 changed files with 23 additions and 29 deletions
@@ -668,7 +668,7 @@ public class PApplet extends Activity implements PConstants, Runnable {
// part of SurfaceHolder.Callback
public void surfaceDestroyed(SurfaceHolder holder) {
g2.dispose();
//g2.dispose();
}
@@ -2499,12 +2499,12 @@ public class PApplet extends Activity implements PConstants, Runnable {
/**
* Called to dispose of resources and shut down the sketch.
* Destroys the thread, dispose the renderer,and notify listeners.
* Destroys the thread, dispose the renderer, and notify listeners.
* <p>
* Not to be called or overriden by users. If called multiple times,
* will only notify listeners once. Register a dispose listener instead.
*/
public void dispose() {
final public void dispose() {
// moved here from stop()
finished = true; // let the sketch know it is shut down time