From 937f493922a60830fc388c8cba9fd90145fbbdf2 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 30 Jun 2002 15:16:02 +0000 Subject: [PATCH] fixed int() and float() problems, also the double f issues --- app/PdeEditorButtons.java | 4 ++++ todo.txt | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/app/PdeEditorButtons.java b/app/PdeEditorButtons.java index 250ae9e1f..e71bbeb07 100644 --- a/app/PdeEditorButtons.java +++ b/app/PdeEditorButtons.java @@ -265,6 +265,10 @@ public class PdeEditorButtons extends Panel { } private int findSelection(int x, int y) { + // if app loads slowly and cursor is near the buttons + // when it comes up, the app may not have time to load + if ((y1 == null) || (y2 == null)) return -1; + for (int i = 0; i < buttonCount; i++) { if ((x > x1) && (y > y1[i]) && (x < x2) && (y < y2[i])) { diff --git a/todo.txt b/todo.txt index c511a231d..775597b27 100644 --- a/todo.txt +++ b/todo.txt @@ -17,10 +17,30 @@ o also important for things like cos, sin, max etc o but maybe once you're doing more advanced code, that stuff's ok o or using inner classes is better b/c class stuff works o related classes also need to implement pConstants +X fixed annoying findSelection bug spew on startup +X (fixed) 0.4f no longer allowed in the code +_ fold simpleserial into BApplet +_ sprint an sprintln functions +_ make i/o work just like mouse (event driven, with dflt behavior) +_ need to have function to enable it in setup +_ modify to allow for the 'build' directory on lib +_ finish tweaks to folder layout in distribution ('java' subdir) +_ move p5 stuff out of lib so that dir can be moved more easily +_ maybe put bin/lib inside 'jre' folder and keep lib for p5 +_ for people that want the space, they could remove 'jre' +_ will make much simpler to update +_ serial is probably broken in newer versions b/c of 1.3 + +_ make a new 'dist' function for building _ make scrollbar for console +JAVA BUGS +_ cursor disappears in textarea and doesn't reappear until re-entry +_ windows: jre 1.3.1_03 through 1.4.0_01 + + UNSORTED _ pde.properties_osx, pde.properties_os9, pde.properties,win ? _ work towards alpha release