Merge pull request #2649 from xhaakon/cross-monitor-subrect
shadow_screen: allow sub-rectangle to span multiple monitors
This commit is contained in:
commit
608174cba6
@ -28,7 +28,6 @@ rdpShadowScreen* shadow_screen_new(rdpShadowServer* server)
|
|||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
int width, height;
|
int width, height;
|
||||||
MONITOR_DEF* primary;
|
|
||||||
rdpShadowScreen* screen;
|
rdpShadowScreen* screen;
|
||||||
rdpShadowSubsystem* subsystem;
|
rdpShadowSubsystem* subsystem;
|
||||||
|
|
||||||
@ -45,12 +44,21 @@ rdpShadowScreen* shadow_screen_new(rdpShadowServer* server)
|
|||||||
|
|
||||||
region16_init(&(screen->invalidRegion));
|
region16_init(&(screen->invalidRegion));
|
||||||
|
|
||||||
primary = &(subsystem->monitors[subsystem->selectedMonitor]);
|
if (server->shareSubRect) {
|
||||||
|
x = server->subRect.left;
|
||||||
|
y = server->subRect.top;
|
||||||
|
width = server->subRect.right - server->subRect.left;
|
||||||
|
height = server->subRect.bottom - server->subRect.top;
|
||||||
|
} else {
|
||||||
|
MONITOR_DEF* primary;
|
||||||
|
|
||||||
x = primary->left;
|
primary = &(subsystem->monitors[subsystem->selectedMonitor]);
|
||||||
y = primary->top;
|
|
||||||
width = primary->right - primary->left;
|
x = primary->left;
|
||||||
height = primary->bottom - primary->top;
|
y = primary->top;
|
||||||
|
width = primary->right - primary->left;
|
||||||
|
height = primary->bottom - primary->top;
|
||||||
|
}
|
||||||
|
|
||||||
screen->width = width;
|
screen->width = width;
|
||||||
screen->height = height;
|
screen->height = height;
|
||||||
|
Loading…
Reference in New Issue
Block a user