# HG changeset patch # User komh # Date 1393989476 0 # Node ID 8c1bbe0536eabe309af3185eb7e993fda460e8d6 # Parent 64e3020090dd467905f2655682e7ec99b3cec20c kva: make sure that image parameters are setup whenever config() is called diff -r 64e3020090dd -r 8c1bbe0536ea libvo/vo_kva.c --- 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,