From 24c92ee481f86ffc7dceb9989e859a590fa6650c Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Mon, 19 May 2014 14:46:47 -0400 Subject: [PATCH] add notes about capture change --- .../video/src/processing/video/Capture.java | 7 +++++-- todo.txt | 14 ++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/java/libraries/video/src/processing/video/Capture.java b/java/libraries/video/src/processing/video/Capture.java index 8f737edf1..67a66c659 100644 --- a/java/libraries/video/src/processing/video/Capture.java +++ b/java/libraries/video/src/processing/video/Capture.java @@ -1017,9 +1017,9 @@ public class Capture extends PImage implements PConstants { copyPixels = null; return; } - fireCaptureEvent(); } + protected synchronized void invokeEvent(int w, int h, Buffer buffer) { available = true; @@ -1032,10 +1032,12 @@ public class Capture extends PImage implements PConstants { natBuffer.dispose(); } natBuffer = buffer; - fireCaptureEvent(); } + + // moved to separate method for Jython support + // https://github.com/processing/processing/pull/2527 private void fireCaptureEvent() { // Creates a captureEvent. if (captureEventMethod != null) { @@ -1050,6 +1052,7 @@ public class Capture extends PImage implements PConstants { } } + //////////////////////////////////////////////////////////// // Stream query methods. diff --git a/todo.txt b/todo.txt index 9411620d0..318d3f327 100644 --- a/todo.txt +++ b/todo.txt @@ -10,14 +10,12 @@ X how was PDE X able to crash 2.2? X add additional code to rework how this is handled X Auto Format patch mess X https://github.com/processing/processing/pull/2271 - -_ why is the JDK path showing up as a ._ feller in OS X? -_ https://github.com/processing/processing/issues/2520 -_ "Archive Sketch" Tool doesn't add a file extension -_ https://github.com/processing/processing/issues/2526 - -_ modifications for captureEvent and Python -_ https://github.com/processing/processing/pull/2527 +X why is the JDK path showing up as a ._ feller in OS X? +X https://github.com/processing/processing/issues/2520 +X "Archive Sketch" Tool doesn't force a .zip file extension +X https://github.com/processing/processing/issues/2526 +X modifications for captureEvent and Python +X https://github.com/processing/processing/pull/2527 medium