summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com/fourisland/fourpuzzle/window/SystemGraphic.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/SystemGraphic.java b/src/com/fourisland/fourpuzzle/window/SystemGraphic.java index aa0b593..163f097 100755 --- a/src/com/fourisland/fourpuzzle/window/SystemGraphic.java +++ b/src/com/fourisland/fourpuzzle/window/SystemGraphic.java
@@ -74,8 +74,11 @@ public class SystemGraphic {
74 if (color < 10) 74 if (color < 10)
75 { 75 {
76 return systemGraphic.getSubimage(color*16, 48, 16, 16); 76 return systemGraphic.getSubimage(color*16, 48, 16, 16);
77 } else if (color < 20)
78 {
79 return systemGraphic.getSubimage((color-10)*16, 64, 16, 16);
77 } else { 80 } else {
78 return systemGraphic.getSubimage(color*16, 64, 16, 16); 81 throw new IllegalArgumentException("Color must be in the range of 0 to 19");
79 } 82 }
80 } 83 }
81 84