From e5d978bac64c72932617e0d1548e48d546eb8103 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 25 Mar 2012 14:34:23 +0000 Subject: [PATCH] add support for printing arrays of longs --- core/src/processing/core/PApplet.java | 7 +++++++ core/todo.txt | 3 +++ 2 files changed, 10 insertions(+) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 74241293d..bc3957d19 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -3707,6 +3707,13 @@ public class PApplet extends Applet } break; + case 'J': // int + long jj[] = (long[]) what; + for (int i = 0; i < jj.length; i++) { + System.out.println("[" + i + "] " + jj[i]); + } + break; + case 'F': // float float ff[] = (float[]) what; for (int i = 0; i < ff.length; i++) { diff --git a/core/todo.txt b/core/todo.txt index ab695d77b..2480b8585 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,6 +1,7 @@ 0205 core X add support for println(long) because it was converting the type to float X http://code.google.com/p/processing/issues/detail?id=969 +X also add support for printing arrays of longs (doubles were already there) sort out full screen issues @@ -87,6 +88,8 @@ _ and merge it in statically via the methods code _ make sure rendering is happening on the EDT _ (hopefully fixes flicker issues) _ change PApplet.java javadoc to reflect the change +_ Update http://wiki.processing.org/w/Troubleshooting#Flicker +_ http://code.google.com/p/processing/issues/detail?id=775 _ memory leak when many createGraphics(..., JAVA2D) calls are used _ http://code.google.com/p/processing/issues/detail?id=507