vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Jan 23 21:43:31 2019 +0200| [ff72ba1ed65dadb323a5b61adbbb7d952198c0ca] | committer: Rémi Denis-Courmont
display: deduplicate zoom limits The 10%-1000% limits are already enforced by the vout code. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff72ba1ed65dadb323a5b61adbbb7d952198c0ca --- src/video_output/display.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/video_output/display.c b/src/video_output/display.c index de36bdd5b8..ce9a8ddd56 100644 --- a/src/video_output/display.c +++ b/src/video_output/display.c @@ -653,14 +653,6 @@ void vout_SetDisplayZoom(vout_display_t *vd, unsigned num, unsigned den) { vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display); - if (10 * num <= den) { - num = 1; - den = 10; - } else if (num >= 10 * den) { - num = 10; - den = 1; - } - if (!osys->cfg.is_display_filled && osys->cfg.zoom.num == num && osys->cfg.zoom.den == den) return; /* nothing to do */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
