Mercurial > mplayer.hg
changeset 27870:31a44a9c8687
Fix Windows OpenGL -wid:
Disable the Window instead of explicitly passing on click events.
This also makes Drag-and-Drop work if the -wid window supports it.
author | reimar |
---|---|
date | Tue, 11 Nov 2008 19:21:36 +0000 |
parents | c4fc6b71b123 |
children | 9cc815a0c22e |
files | libvo/w32_common.c |
diffstat | 1 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/w32_common.c Tue Nov 11 13:57:29 2008 +0000 +++ b/libvo/w32_common.c Tue Nov 11 19:21:36 2008 +0000 @@ -43,8 +43,6 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { RECT r; POINT p; - if (WinID < 0 || message == WM_PAINT || message == WM_ERASEBKGND || - message == WM_SIZE) { switch (message) { case WM_ERASEBKGND: // no need to erase background seperately return 1; @@ -147,19 +145,6 @@ break; } } - } else switch (message) { - case WM_MOUSEMOVE: - case WM_LBUTTONDOWN: - case WM_LBUTTONUP: - case WM_LBUTTONDBLCLK: - case WM_MBUTTONDOWN: - case WM_MBUTTONUP: - case WM_MBUTTONDBLCLK: - case WM_RBUTTONDOWN: - case WM_RBUTTONUP: - case WM_RBUTTONDBLCLK: - SendNotifyMessage(WinID, message, wParam, lParam); - } return DefWindowProc(hWnd, message, wParam, lParam); } @@ -394,6 +379,7 @@ vo_window = CreateWindowEx(WS_EX_NOPARENTNOTIFY, classname, classname, WS_CHILD | WS_VISIBLE, 0, 0, vo_dwidth, vo_dheight, WinID, 0, hInstance, 0); + EnableWindow(vo_window, 0); } else vo_window = CreateWindowEx(0, classname, classname, vo_border ? (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP,