-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix gamma correction for color not enabled on fresh install #5225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
81e35ec
cba0e4f
101eef5
b68a9e0
48fab36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| . | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -506,8 +506,8 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { | |
| CJSON(strip.autoSegments, light[F("aseg")]); | ||
|
|
||
| CJSON(gammaCorrectVal, light["gc"]["val"]); // default 2.2 | ||
| float light_gc_bri = light["gc"]["bri"]; | ||
| float light_gc_col = light["gc"]["col"]; | ||
| float light_gc_bri = light["gc"]["bri"] | 1.0f; // default to 1.0 (false) | ||
| float light_gc_col = light["gc"]["col"] | 2.2f; // default to 2.2 (true) | ||
|
||
| if (light_gc_bri > 1.0f) gammaCorrectBri = true; | ||
| else gammaCorrectBri = false; | ||
| if (light_gc_col > 1.0f) gammaCorrectCol = true; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File removed and added to .gitignore to prevent it from being committed again. Fixed in b68a9e0.