mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-23 00:40:31 +00:00
GL: allow writting gamma=1/2.2
gamma can now be a fraction
This commit is contained in:
@@ -595,6 +595,9 @@ static void *display_gl_parse_fmt(struct state_gl *s, char *ptr) {
|
||||
#endif
|
||||
} else if (strstr(tok, "gamma=") == tok) {
|
||||
s->gamma = stof(strchr(tok, '=') + 1);
|
||||
if (strchr(tok, '/')) {
|
||||
s->gamma /= stof(strchr(tok, '/') + 1);
|
||||
}
|
||||
} else if (!strcasecmp(tok, "hide-window")) {
|
||||
s->hide_window = true;
|
||||
} else if (strcasecmp(tok, "pbo") == 0 || strcasecmp(tok, "nopbo") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user