[MPlayer-cvslog] r36975 - trunk/libvo/vo_kva.c

komh subversion at mplayerhq.hu
Wed Mar 5 04:17:57 CET 2014


Author: komh
Date: Wed Mar  5 04:17:56 2014
New Revision: 36975

Log:
kva: make sure that image parameters are setup whenever config() is called

Modified:
   trunk/libvo/vo_kva.c

Modified: trunk/libvo/vo_kva.c
==============================================================================
--- trunk/libvo/vo_kva.c	Wed Mar  5 02:15:08 2014	(r36974)
+++ trunk/libvo/vo_kva.c	Wed Mar  5 04:17:56 2014	(r36975)
@@ -839,6 +839,11 @@ static int config(uint32_t width, uint32
         rcl = m_int.rclDst;
     }
 
+    // trick to setup image parameters in WM_SIZE
+    // if new sizes of a window are same as old ones,
+    // WM_SIZE is not called
+    WinSetWindowPos(m_int.hwndFrame, NULLHANDLE, 0, 0, 0, 0, SWP_SIZE);
+
     WinCalcFrameRect(m_int.hwndFrame, &rcl, FALSE);
 
     WinSetWindowPos(m_int.hwndFrame, HWND_TOP,


More information about the MPlayer-cvslog mailing list