mirror of https://github.com/FreeRDP/FreeRDP
Fixed gemoetry mapping.
This commit is contained in:
parent
d9277b7fb8
commit
79d9ae8775
|
@ -393,8 +393,8 @@ static BOOL video_onMappedGeometryUpdate(MAPPED_GEOMETRY *geometry)
|
|||
r->x, r->y, r->width, r->height
|
||||
);
|
||||
|
||||
presentation->surface->x = geometry->topLevelLeft + geometry->left + r->x;
|
||||
presentation->surface->y = geometry->topLevelTop + geometry->top + r->y;
|
||||
presentation->surface->x = geometry->left + r->x;
|
||||
presentation->surface->y = geometry->top + r->y;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -455,8 +455,8 @@ static UINT video_PresentationRequest(VideoClientContext* video, TSMM_PRESENTATI
|
|||
|
||||
WLog_DBG(TAG, "creating presentation 0x%x", req->PresentationId);
|
||||
presentation = PresentationContext_new(video, req->PresentationId,
|
||||
geom->topLevelLeft + geom->left + geom->geometry.boundingRect.x,
|
||||
geom->topLevelTop + geom->top + geom->geometry.boundingRect.y,
|
||||
geom->left + geom->geometry.boundingRect.x,
|
||||
geom->top + geom->geometry.boundingRect.y,
|
||||
req->SourceWidth, req->SourceHeight);
|
||||
if (!presentation)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue