Actually change gamma upon config change
authorTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 11 Aug 2019 11:01:49 +0000 (13:01 +0200)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 11 Aug 2019 11:01:49 +0000 (13:01 +0200)
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+");