From 26c2aa0e2de844c329c2f8d4768221aac32e79b6 Mon Sep 17 00:00:00 2001 From: Andy Duplain Date: Fri, 31 May 2019 12:15:49 +0100 Subject: [PATCH] Fix compilation of example entry_winrt.cx on VS2017. --- examples/common/entry/entry_winrt.cx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/common/entry/entry_winrt.cx b/examples/common/entry/entry_winrt.cx index 76270e997..25ddb3b0b 100644 --- a/examples/common/entry/entry_winrt.cx +++ b/examples/common/entry/entry_winrt.cx @@ -11,6 +11,7 @@ #include #include #include +#include using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Core; @@ -91,8 +92,8 @@ public: auto dpi = DisplayInformation::GetForCurrentView()->LogicalDpi; static const float dipsPerInch = 96.0f; g_eventQueue.postSizeEvent(g_defaultWindow - , lround(bx::floor(bounds.Width * dpi / dipsPerInch + 0.5f) ) - , lround(bx::floor(bounds.Height * dpi / dipsPerInch + 0.5f) ) + , std::lround(bx::floor(bounds.Width * dpi / dipsPerInch + 0.5f) ) + , std::lround(bx::floor(bounds.Height * dpi / dipsPerInch + 0.5f) ) ); #endif // BX_PLATFORM_WINRT