From 1cd3b3c5ddde1c9d93de1b8bd4f26916e41b9381 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 4 Feb 2010 22:46:45 +0000 Subject: [PATCH] Add support for VOFLAG_HIDDEN to the w32 backend. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30509 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 7c60f2d301..a0ffd9fb98 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -391,6 +391,9 @@ static int createRenderingContext(void) { * \return 1 - Success, 0 - Failure */ int vo_w32_config(uint32_t width, uint32_t height, uint32_t flags) { + // we already have a fully initialized window, so nothing needs to be done + if (flags & VOFLAG_HIDDEN) + return; // store original size for videomode switching o_dwidth = width; o_dheight = height;