]> git.sesse.net Git - vlc/commitdiff
Fixed zoom setting when the video fills the display.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 26 Jan 2010 22:31:38 +0000 (23:31 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 26 Jan 2010 22:31:38 +0000 (23:31 +0100)
The zoom parameters need to be taken into account as the window
can be resized.

src/video_output/display.c

index cc5451daca220e386b22081e8aa7471ad21828a0..9a865f1559986bde0b86895700b0cbab27921a72 100644 (file)
@@ -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;