[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:24:01 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jun 10 22:57:53 2010 +0200| [bbe96d36561c5f3d880291f9f065eda5eb959869] | committer: Laurent Aimar 

Updated window size after changing fullscreen state (msw).

It should improve the transition.

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

 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 58b9844..dbcf984 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -618,7 +618,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_HIDE_MOUSE:



More information about the vlc-commits mailing list