mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
example/imageviewer: change screen_gamma flag
This commit is contained in:
1 parent
d270839e3f
commit
8a722790af
1 file changed
+2
-2
@@ -141,7 +141,7 @@ static const char* g_usage =
|
||||
"\n"
|
||||
"Flags:\n"
|
||||
" -lower-quality (exercise lower-image-quality code paths)\n"
|
||||
" -screen_gamma=N.N (default 2.2; 0 disables gamma correction)";
|
||||
" -screen-gamma=N.N (default 2.2; 0 disables gamma correction)";
|
||||
|
||||
const char* //
|
||||
parse_flags(int argc, char** argv) {
|
||||
@@ -171,7 +171,7 @@ parse_flags(int argc, char** argv) {
|
||||
g_flags.lower_quality = true;
|
||||
continue;
|
||||
}
|
||||
if (!strncmp(arg, "screen_gamma=", 13)) {
|
||||
if (!strncmp(arg, "screen-gamma=", 13)) {
|
||||
g_flags.screen_gamma = atof(arg + 13);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user