From 9a8242e42083e1ffa952188eb6b65b67c51905c6 Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 26 Mar 2012 01:48:04 +0000 Subject: [PATCH] a little bulletproofing/checking --- core/src/processing/core/PApplet.java | 3 +++ core/todo.txt | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index ef402fad5..a8e46e20e 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1890,8 +1890,11 @@ public class PApplet extends Applet long now = System.nanoTime(); if (frameCount == 0) { + GraphicsConfiguration gc = getGraphicsConfiguration(); + if (gc == null) return; GraphicsDevice displayDevice = getGraphicsConfiguration().getDevice(); + if (displayDevice == null) return; Rectangle screenRect = displayDevice.getDefaultConfiguration().getBounds(); // screenX = screenRect.x; diff --git a/core/todo.txt b/core/todo.txt index 853574748..7ffaa82a5 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -3,6 +3,13 @@ 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) +fixed in 2.0a5 +A OpenGL noSmooth() does not work +A http://code.google.com/p/processing/issues/detail?id=328 + +_ shared intf for 3D view data across PGraphicsOpenGL and PGraphicsAndroid3D +_ libraries have to do a lot of casting + _ look into using BufferStrategy again to improve performance _ there are more improvements to be made ala issue #729 _ make sure rendering is happening on the EDT