From bbe96d36561c5f3d880291f9f065eda5eb959869 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Thu, 10 Jun 2010 22:57:53 +0200 Subject: [PATCH] Updated window size after changing fullscreen state (msw). It should improve the transition. --- modules/video_output/msw/common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c index 58b9844cd9..dbcf984fd5 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: -- 2.39.2