vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Aug 10 
18:35:22 2017 +0300| [c0077dd785113a316a6bf4696f132ad3b0201a54] | committer: 
Rémi Denis-Courmont

display: store the actually requested zoom

The code currently does not allow zoom outside [0.1 ... 10]. Store in
the display configuration the zoom that the display supposedly uses,
not the one that was requested.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0077dd785113a316a6bf4696f132ad3b0201a54
---

 src/video_output/display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 4e8cef24c4..3310b2d6f2 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -862,8 +862,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool 
allow_reset_pictures)
             vout_display_Control(vd, VOUT_DISPLAY_CHANGE_ZOOM, &cfg);
 
             osys->fit_window = -1;
-            osys->cfg.zoom.num = osys->zoom.num;
-            osys->cfg.zoom.den = osys->zoom.den;
+            osys->cfg.zoom.num = cfg.zoom.num;
+            osys->cfg.zoom.den = cfg.zoom.den;
             osys->ch_zoom = false;
         }
 #if defined(_WIN32) || defined(__OS2__)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to