From 0cc2ca7a5767a3ae26a6a3899840b290735e3948 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 6 Mar 2010 22:37:28 +0200 Subject: [PATCH] Win32: allow negative values for window coordinates (fixes #3389) --- modules/video_output/msw/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.2