Skip to content

Commit

Permalink
text: use floats instead of double in {fg,bg}_color params
Browse files Browse the repository at this point in the history
  • Loading branch information
ubitux committed Apr 6, 2024
1 parent 28ee204 commit 5ebca55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libnopegl/src/node_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ static const struct node_param text_params[] = {
.desc=NGLI_DOCSTRING("text string to rasterize")},
{"live_id", NGLI_PARAM_TYPE_STR, OFFSET(live.id),
.desc=NGLI_DOCSTRING("live control identifier")},
{"fg_color", NGLI_PARAM_TYPE_VEC3, OFFSET(fg_color), {.vec={1.0, 1.0, 1.0}},
{"fg_color", NGLI_PARAM_TYPE_VEC3, OFFSET(fg_color), {.vec={1.f, 1.f, 1.f}},
.flags=NGLI_PARAM_FLAG_ALLOW_LIVE_CHANGE,
.update_func=set_live_changed,
.desc=NGLI_DOCSTRING("foreground text color")},
{"fg_opacity", NGLI_PARAM_TYPE_F32, OFFSET(fg_opacity), {.f32=1.f},
.flags=NGLI_PARAM_FLAG_ALLOW_LIVE_CHANGE,
.update_func=set_live_changed,
.desc=NGLI_DOCSTRING("foreground text opacity")},
{"bg_color", NGLI_PARAM_TYPE_VEC3, OFFSET(bg_color), {.vec={0.0, 0.0, 0.0}},
{"bg_color", NGLI_PARAM_TYPE_VEC3, OFFSET(bg_color), {.vec={0.f, 0.f, 0.f}},
.flags=NGLI_PARAM_FLAG_ALLOW_LIVE_CHANGE,
.desc=NGLI_DOCSTRING("background text color")},
{"bg_opacity", NGLI_PARAM_TYPE_F32, OFFSET(bg_opacity), {.f32=.8f},
Expand Down

0 comments on commit 5ebca55

Please sign in to comment.