Actually change gamma upon config change
[kaka/cakelight.git] / src / kaka / cakelight / Console.java
index faa7054..84ca61e 100644 (file)
@@ -50,6 +50,7 @@ public class Console extends Thread {
                } else if (input.matches("(g|gamma)\\s+[0-9.]+")) {
                    String[] split = input.split("\\s+");
                    config.gamma = Double.parseDouble(split[1]);
+                   Color.calculateGammaCorrection(config.gamma);
                    System.out.println("setting gamma to " + config.gamma);
                } else if (input.matches("(s|saturation)\\s+[0-9.]+")) {
                    String[] split = input.split("\\s+");