X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FConsole.java;h=cd48f49806903c5237928a0aeb11368729f97bf4;hb=6d89e87fca5b33073f31cbe472cb4517be89a84c;hp=43ebd13e9516ec86960f24ecb76d8cbab566f328;hpb=8a0c98f8672e0b52a70f183c22421cf3d1033d9a;p=kaka%2Fcakelight.git diff --git a/src/kaka/cakelight/Console.java b/src/kaka/cakelight/Console.java index 43ebd13..cd48f49 100644 --- a/src/kaka/cakelight/Console.java +++ b/src/kaka/cakelight/Console.java @@ -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");