summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r--video/out/w32_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 5b8771fd82..d93592d61e 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -465,6 +465,11 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
return 0;
}
}
+
+ if (mouse_button & MP_KEY_STATE_DOWN)
+ SetCapture(w32->window);
+ else
+ ReleaseCapture();
}
return DefWindowProcW(hWnd, message, wParam, lParam);