[vlc-commits] commit: Updated window size after changing fullscreen state (msw). ( Laurent Aimar )

git at videolan.org git at videolan.org
Fri Jun 11 00:31:40 CEST 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jun 10 22:57:53 2010 +0200| [c08e2d92211417275e95d621ac1b1c69f5ba0da8] | committer: Jean-Baptiste Kempf 

Updated window size after changing fullscreen state (msw).

It should improve the transition.
(cherry picked from commit bbe96d36561c5f3d880291f9f065eda5eb959869)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/msw/common.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index fc11a16..73d9d9b 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -631,7 +631,10 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
     }
     case VOUT_DISPLAY_CHANGE_FULLSCREEN: {   /* const vout_display_cfg_t *p_cfg */
         const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
-        return CommonControlSetFullscreen(vd, cfg->is_fullscreen);
+        if (CommonControlSetFullscreen(vd, cfg->is_fullscreen))
+            return VLC_EGENERIC;
+        UpdateRects(vd, NULL, NULL, false);
+        return VLC_SUCCESS;
     }
 
     case VOUT_DISPLAY_RESET_PICTURES:



More information about the vlc-commits mailing list