]> git.sesse.net Git - vlc/commitdiff
Win32: allow negative values for window coordinates (fixes #3389)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Mar 2010 20:37:28 +0000 (22:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Mar 2010 20:40:33 +0000 (22:40 +0200)
modules/video_output/msw/events.c

index b4fb0eb2120f05050cf4c61eac5f5a1c708e9cff..a65fc64cd5fce4564eb578bd7185c302fcbc0fd3 100644 (file)
@@ -542,9 +542,9 @@ static int DirectXCreateWindow( event_thread_t *p_event )
                     _T("VLC DirectX"),               /* name of window class */
                     _T(VOUT_TITLE) _T(" (DirectX Output)"),  /* window title */
                     i_style,                                 /* window style */
-                    (p_event->wnd_cfg.x < 0) ? CW_USEDEFAULT :
+                    (!p_event->wnd_cfg.x) ? CW_USEDEFAULT :
                         (UINT)p_event->wnd_cfg.x,   /* default X coordinate */
-                    (p_event->wnd_cfg.y < 0) ? CW_USEDEFAULT :
+                    (!p_event->wnd_cfg.y) ? CW_USEDEFAULT :
                         (UINT)p_event->wnd_cfg.y,   /* default Y coordinate */
                     rect_window.right - rect_window.left,    /* window width */
                     rect_window.bottom - rect_window.top,   /* window height */