]> www.dolda2000.com Git - kaka/cakelight.git/commitdiff
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 faa7054eb8dae53ec1dc481b10e65bbd2b60f590..84ca61e7ee4e0cf2923672c86a18cd27a46a398a 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+");