Browse Source

Fix for enum_monitors

Function enum_monitors would always stop after first found monitor due to wrong return value.
Manuel Kroeber 11 years ago
parent
commit
ff2c7bd9de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/win-capture/monitor-capture.c

+ 1 - 1
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,