todos and tweaks

This commit is contained in:
benfry
2005-03-28 01:16:16 +00:00
parent aefb7063dc
commit a66db62ef5
5 changed files with 175 additions and 86 deletions

View File

@@ -194,7 +194,7 @@ public class PImage implements PConstants, Cloneable {
* just too weird for the other functions
*/
public void imageMode(int mode) {
if ((imageMode == CORNER) || (imageMode == CORNERS)) {
if ((mode == CORNER) || (mode == CORNERS)) {
imageMode = mode;
} else {
throw new RuntimeException("imageMode() only works with CORNER or CORNERS");