Dolda2000 GitWeb
/
kaka
/
cakelight.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add console command for saturation
[kaka/cakelight.git]
/
src
/
kaka
/
cakelight
/
Console.java
diff --git
a/src/kaka/cakelight/Console.java
b/src/kaka/cakelight/Console.java
index
43ebd13
..
0d45b7f
100644
(file)
--- a/
src/kaka/cakelight/Console.java
+++ b/
src/kaka/cakelight/Console.java
@@
-52,6
+52,11
@@
public class Console extends Thread {
config.gamma = Double.parseDouble(split[1]);
System.out.println("setting gamma to " + config.gamma);
break;
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);
+ break;
}
} catch (IOException e) {
System.out.println("Error reading from command line");
}
} catch (IOException e) {
System.out.println("Error reading from command line");