Fixed gemoetry mapping.

This commit is contained in:
Armin Novak 2018-02-08 09:47:41 +01:00 committed by David Fort
parent d9277b7fb8
commit 79d9ae8775
1 changed files with 4 additions and 4 deletions

View File

@ -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)
{