From: RĂ©mi Denis-Courmont Date: Sat, 6 Mar 2010 20:37:28 +0000 (+0200) Subject: Win32: allow negative values for window coordinates (fixes #3389) X-Git-Tag: 1.1.0-pre1~467 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0cc2ca7a5767a3ae26a6a3899840b290735e3948;p=vlc Win32: allow negative values for window coordinates (fixes #3389) --- diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index b4fb0eb212..a65fc64cd5 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -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 */