From 1078bff534ab15c3d792f083af234ccb9acc5e3b Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Wed, 17 Oct 2018 16:48:15 +0100 Subject: [PATCH] allocate viewport allows dpi to be overriden. --- src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs b/src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs index ec61dbc037..7080dd6714 100644 --- a/src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs +++ b/src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs @@ -81,6 +81,7 @@ namespace Avalonia.Controls.Remote.Server allocation = _pendingAllocation; _pendingAllocation = null; } + _dpi = new Vector(allocation.DpiX, allocation.DpiY); ClientSize = new Size(allocation.Width, allocation.Height); RenderIfNeeded(); });