[vlc-devel] commit: Fixed zoom setting when the video fills the display. ( Laurent Aimar )

git version control git at videolan.org
Tue Jan 26 23:44:39 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan 26 23:31:38 2010 +0100| [3c631309e5144a5807d74f5adbdf449b1dd50dcc] | committer: Laurent Aimar 

Fixed zoom setting when the video fills the display.

The zoom parameters need to be taken into account as the window
can be resized.

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

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

diff --git a/src/video_output/display.c b/src/video_output/display.c
index cc5451d..9a865f1 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -980,7 +980,8 @@ void vout_SetDisplayZoom(vout_display_t *vd, int num, int den)
 {
     vout_display_owner_sys_t *osys = vd->owner.sys;
 
-    if (osys->zoom.num != num || osys->zoom.den != den) {
+    if (osys->is_display_filled ||
+        osys->zoom.num != num || osys->zoom.den != den) {
         osys->ch_zoom = true;
         osys->zoom.num = num;
         osys->zoom.den = den;




More information about the vlc-devel mailing list