platform code refactor (#242)

This commit is contained in:
Turánszki János
2021-02-23 00:29:29 +01:00
committed by GitHub
parent bf10893bc7
commit 666dd4ff03
20 changed files with 266 additions and 305 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ public:
m_logicalWidth = window.Bounds().Width;
m_logicalHeight = window.Bounds().Height;
main.SetWindow(&window);
main.SetWindow(window);
}
void Load(winrt::hstring const&) noexcept
@@ -145,7 +145,7 @@ protected:
m_logicalWidth = sender.Bounds().Width;
m_logicalHeight = sender.Bounds().Height;
float dpiscale = wiPlatform::GetDPIScaling();
float dpiscale = wiRenderer::GetDevice()->GetDPIScaling();
uint64_t data = 0;
data |= int(m_logicalWidth * dpiscale);
data |= int(m_logicalHeight * dpiscale) << 16;