[vlc-commits] commit: Win32: allow negative values for window coordinates (fixes #3389) ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sat Mar 6 21:39:19 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 6 22:37:28 2010 +0200| [a27090fbc3c1171e1218813fadbc052eef225f27] | committer: Rémi Denis-Courmont
Win32: allow negative values for window coordinates (fixes #3389)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a27090fbc3c1171e1218813fadbc052eef225f27
---
modules/video_output/msw/events.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index b4fb0eb..899dd1c 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 */
More information about the vlc-commits
mailing list