Skip to content
Snippets Groups Projects
Commit 149f6886 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf
Browse files

osd: keep reasonable precision

We don't need to print six digits (zeroes) after the decimal separator.
parent a20eb577
No related branches found
No related tags found
1 merge request!1989osd: keep reasonable precision
Pipeline #225199 passed with stage
in 18 minutes and 1 second
......@@ -357,7 +357,7 @@ vlc_player_vout_OSDCallback(vlc_object_t *this, const char *var,
bool found = vout_osd_PrintVariableText(vout, var, VLC_VAR_FLOAT,
newval, _("Zoom mode: %s"));
if (!found)
vouts_osd_Message(&vout, 1, _("Zoom: x%f"), newval.f_float);
vouts_osd_Message(&vout, 1, _("Zoom: x%.2f"), newval.f_float);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment