[vlc-commits] kva: remove obsolete workaround

KO Myung-Hun git at videolan.org
Fri May 17 13:25:12 CEST 2013


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Fri May 17 16:29:43 2013 +0900| [d9319dc87612f1cef53e09c3d5a14efd8a481e51] | committer: Rafaël Carré

kva: remove obsolete workaround

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9319dc87612f1cef53e09c3d5a14efd8a481e51
---

 modules/video_output/kva.c |   16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 6a44cb3..eaca5e3 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -194,13 +194,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 );
@@ -496,15 +489,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,



More information about the vlc-commits mailing list