From ff2c7bd9deea9e1e8871f2404f635fc88817f99e Mon Sep 17 00:00:00 2001 From: Manuel Kroeber Date: Tue, 14 Oct 2014 20:41:56 +0200 Subject: [PATCH] Fix for enum_monitors Function enum_monitors would always stop after first found monitor due to wrong return value. --- plugins/win-capture/monitor-capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/monitor-capture.c b/plugins/win-capture/monitor-capture.c index 9bfb44a5b..3e799b819 100644 --- a/plugins/win-capture/monitor-capture.c +++ b/plugins/win-capture/monitor-capture.c @@ -50,7 +50,7 @@ static BOOL CALLBACK enum_monitor(HMONITOR handle, HDC hdc, LPRECT rect, UNUSED_PARAMETER(hdc); UNUSED_PARAMETER(handle); - return (monitor->desired_id < monitor->cur_id++); + return (monitor->desired_id > monitor->cur_id++); } static void update_monitor(struct monitor_capture *capture,