Skip to content

Commit

Permalink
Merge pull request #2201 from matt335672/neutrinordp_regression
Browse files Browse the repository at this point in the history
Fix neutrinordp regression caused by bd9147d
  • Loading branch information
matt335672 authored Mar 29, 2022
2 parents bf16cb5 + d2be050 commit cd1af47
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions neutrinordp/xrdp-neutrinordp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1932,15 +1932,17 @@ lfreerdp_pre_connect(freerdp *instance)
instance->settings->ignore_certificate = 1;

// Multi Monitor Settings
instance->settings->num_monitors = mod->client_info.monitorCount;
const struct display_size_description *display_sizes =
&mod->client_info.display_sizes;
instance->settings->num_monitors = display_sizes->monitorCount;

for (index = 0; index < mod->client_info.monitorCount; index++)
for (index = 0; index < display_sizes->monitorCount; index++)
{
instance->settings->monitors[index].x = mod->client_info.minfo[index].left;
instance->settings->monitors[index].y = mod->client_info.minfo[index].top;
instance->settings->monitors[index].width = mod->client_info.minfo[index].right;
instance->settings->monitors[index].height = mod->client_info.minfo[index].bottom;
instance->settings->monitors[index].is_primary = mod->client_info.minfo[index].is_primary;
instance->settings->monitors[index].x = display_sizes->minfo[index].left;
instance->settings->monitors[index].y = display_sizes->minfo[index].top;
instance->settings->monitors[index].width = display_sizes->minfo[index].right;
instance->settings->monitors[index].height = display_sizes->minfo[index].bottom;
instance->settings->monitors[index].is_primary = display_sizes->minfo[index].is_primary;
}

instance->update->BeginPaint = lfreerdp_begin_paint;
Expand Down

0 comments on commit cd1af47

Please sign in to comment.