Bugfix - remove breaks
[kaka/cakelight.git] / src / kaka / cakelight / Console.java
index 43ebd13..cd48f49 100644 (file)
@@ -51,7 +51,10 @@ public class Console extends Thread {
                    String[] split = input.split("\\s+");
                    config.gamma = Double.parseDouble(split[1]);
                    System.out.println("setting gamma to " + config.gamma);
-                   break;
+               } else if (input.matches("s|saturation\\s+[0-9.]+")) {
+                   String[] split = input.split("\\s+");
+                   config.video.saturation = Double.parseDouble(split[1]);
+                   System.out.println("setting saturation to " + config.video.saturation);
                }
             } catch (IOException e) {
                 System.out.println("Error reading from command line");