Merge pull request #3167 from WizardCM/duplicator-log

win-capture: Log duplicator display when updating properties
master
Jim 2020-07-15 06:59:51 -07:00 committed by GitHub
commit 2ba2df6e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,15 @@ static inline void update_settings(struct duplicator_capture *capture,
obs_enter_graphics(); obs_enter_graphics();
struct gs_monitor_info info;
if (gs_get_duplicator_monitor_info(capture->monitor, &info)) {
info("update settings:\n"
"\tdisplay: %d (%ldx%ld)\n"
"\tcursor: %s",
capture->monitor + 1, info.cx, info.cy,
capture->capture_cursor ? "true" : "false");
}
gs_duplicator_destroy(capture->duplicator); gs_duplicator_destroy(capture->duplicator);
capture->duplicator = NULL; capture->duplicator = NULL;
capture->width = 0; capture->width = 0;