Closed AntonPetrov83 closed 4 years ago
Hi there, thanks for reporting this. All UWP-related changes in this repository have been merged upstream, so this repo has generally been deprecated. I suggest using the master ANGLE repo going forward. Please see this page for more details: https://github.com/microsoft/angle
You may want to look into using an IPropertySet to set the swapchain size manually. See from this line onwards for details: https://github.com/google/angle/blob/e33c1582b4bc6da24c08f14aa2b74d1677c974dd/src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp#L98
If you have further questions then I suggest emailing the master ANGLE project mailing list, or filing an bug on http://anglebug.com
Thanks again Austin
Comparing default template projects for CoreWindow and XAML it is obvious that XAML implementation does not apply Display settings Scale properly. For my Surface Pro device when Scale 200% is specified XAML example looks pixelated.
This is because ANGLE
SwapChainPanelNativeWindow
implementation usesUIElement.RenderSize
to get panel size which is not raw pixels but scaled units:But
CoreWindowNativeWindow
implementation converts window size to physical pixels:Hence is the difference in behaviour.
Sorry, I have no capacity to pull-request and test it properly.