changeset 36879:8c1bbe0536ea

kva: make sure that image parameters are setup whenever config() is called
author komh
date Wed, 05 Mar 2014 03:17:56 +0000
parents 64e3020090dd
children c4b770eab978
files libvo/vo_kva.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_kva.c	Wed Mar 05 01:15:08 2014 +0000
+++ b/libvo/vo_kva.c	Wed Mar 05 03:17:56 2014 +0000
@@ -839,6 +839,11 @@
         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,