finalizing camera api, added source(), settings(), and format().. also

fixed unhex
This commit is contained in:
benfry
2005-04-16 08:54:51 +00:00
parent cbf94729ad
commit 2f466a0280
6 changed files with 187 additions and 139 deletions

View File

@@ -4706,7 +4706,8 @@ public class PApplet extends Applet
}
static final public int unhex(String what) {
return Integer.parseInt(what, 16);
// has to parse as a Long so that it'll work for numbers bigger than 2^31
return (int) (Long.parseLong(what, 16));
}
//