[vlc-commits] [Git][videolan/vlc][master] osd: keep reasonable precision

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri May 27 12:30:10 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
149f6886 by Rémi Denis-Courmont at 2022-05-27T12:12:25+00:00
osd: keep reasonable precision

We don't need to print six digits (zeroes) after the decimal separator.

- - - - -


1 changed file:

- src/player/osd.c


Changes:

=====================================
src/player/osd.c
=====================================
@@ -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);
         }
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/149f688662ab134ad4e15518c03904524080e150

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/149f688662ab134ad4e15518c03904524080e150
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list