diff options
author | 2015-10-20 21:34:36 +0200 | |
---|---|---|
committer | 2015-10-20 21:34:36 +0200 | |
commit | a7b8acbe3eebcf17367baa642375cfa47ae4ea85 (patch) | |
tree | 854b859d6176802c0278f4b00de3f7c774e02dda /3rdparty/bgfx/examples/common/entry/entry_winrt.cpp | |
parent | 4610935e796661874bb4ee7ec6536d9423aeb7be (diff) | |
parent | 74aae76c4e3e257f99d139c4febb5d86d1419e50 (diff) |
Merge pull request #6 from mamedev/master
Sync to base master
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry_winrt.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/common/entry/entry_winrt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry_winrt.cpp b/3rdparty/bgfx/examples/common/entry/entry_winrt.cpp index 1bca2de28da..042c032d609 100644 --- a/3rdparty/bgfx/examples/common/entry/entry_winrt.cpp +++ b/3rdparty/bgfx/examples/common/entry/entry_winrt.cpp @@ -7,7 +7,7 @@ #if BX_PLATFORM_WINRT -#include <bgfxplatform.h> +#include <bgfx/bgfxplatform.h> #include <bx/thread.h> using namespace Windows::ApplicationModel; @@ -44,7 +44,7 @@ public: window->VisibilityChanged += ref new TypedEventHandler<CoreWindow^, VisibilityChangedEventArgs^>(this, &App::OnVisibilityChanged); window->Closed += ref new TypedEventHandler<CoreWindow^, CoreWindowEventArgs^>(this, &App::OnWindowClosed); - bgfx::winrtSetWindow(reinterpret_cast<IUnknown*>(window)); + bgfx::winrtSetWindow(reinterpret_cast<IUnknown*>(window) ); } virtual void Load(String^ entryPoint) @@ -62,8 +62,8 @@ public: static const float dipsPerInch = 96.0f; g_eventQueue.postSizeEvent(g_defaultWindow - , lround(floorf(bounds.Width * dpi / dipsPerInch + 0.5f)) - , lround(floorf(bounds.Height * dpi / dipsPerInch + 0.5f)) + , lround(floorf(bounds.Width * dpi / dipsPerInch + 0.5f) ) + , lround(floorf(bounds.Height * dpi / dipsPerInch + 0.5f) ) ); while (!m_windowClosed) |