mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UWP: Avoid some float conversion warnings.
This commit is contained in:
parent
485249a83e
commit
10a356c23b
1 changed files with 3 additions and 3 deletions
|
@ -470,13 +470,13 @@ void DX::DeviceResources::SetWindow(CoreWindow^ window)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto dm = hdi->GetCurrentDisplayMode();
|
const auto dm = hdi->GetCurrentDisplayMode();
|
||||||
const unsigned int hdmi_width = dm->ResolutionWidthInRawPixels;
|
const float hdmi_width = (float)dm->ResolutionWidthInRawPixels;
|
||||||
const unsigned int hdmi_height = dm->ResolutionHeightInRawPixels;
|
const float hdmi_height = (float)dm->ResolutionHeightInRawPixels;
|
||||||
// If we're running on Xbox, use the HDMI mode instead of the CoreWindow size.
|
// If we're running on Xbox, use the HDMI mode instead of the CoreWindow size.
|
||||||
// In UWP, the CoreWindow is always 1920x1080, even when running at 4K.
|
// In UWP, the CoreWindow is always 1920x1080, even when running at 4K.
|
||||||
|
|
||||||
m_logicalSize = Windows::Foundation::Size(hdmi_width, hdmi_height);
|
m_logicalSize = Windows::Foundation::Size(hdmi_width, hdmi_height);
|
||||||
m_dpi = currentDisplayInformation->LogicalDpi * 1.5;
|
m_dpi = currentDisplayInformation->LogicalDpi * 1.5f;
|
||||||
}
|
}
|
||||||
catch (const Platform::Exception^)
|
catch (const Platform::Exception^)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue