[vlc-devel] [PATCH 1/3] kva: remove obsolete workaround

KO Myung-Hun komh78 at gmail.com
Fri May 17 09:29:43 CEST 2013


---
 modules/video_output/kva.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 2d38409..df45eca 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -206,13 +206,6 @@ static void PMThread( void *arg )
     {
         sys->parent = ( HWND )sys->parent_window->handle.hwnd;
 
-        /* Workaround :
-         * When an embedded window opened first, it is not positioned
-         * correctly. So reposition it here, again.
-         */
-        WinSetWindowPos( WinQueryWindow( sys->parent, QW_PARENT ),
-                         HWND_TOP, 0, 0, 0, 0, SWP_MOVE );
-
         ULONG i_style = WinQueryWindowULong( sys->parent, QWL_STYLE );
         WinSetWindowULong( sys->parent, QWL_STYLE,
                            i_style | WS_CLIPCHILDREN );
@@ -512,15 +505,6 @@ static int Control( vout_display_t *vd, int query, va_list args )
             {
                 vout_window_SetSize(sys->parent_window,
                                     cfg->display.width, cfg->display.height);
-
-                /* Workaround :
-                 * If changing aspect ratio after resizing a main window,
-                 * an embedded window is misplaced. So reposition it, here.
-                 */
-                WinSetWindowPos( WinQueryWindow( sys->parent, QW_PARENT ),
-                                 HWND_TOP, 0, 1, 0, 0, SWP_MOVE );
-                WinSetWindowPos( WinQueryWindow( sys->parent, QW_PARENT ),
-                                 HWND_TOP, 0, 0, 0, 0, SWP_MOVE );
             }
             else
                 WinPostMsg( sys->client, WM_VLC_SIZE_CHANGE,
-- 
1.7.3.2




More information about the vlc-devel mailing list