From 2fe208917976a66a315c83672cc2242ffb2ac88a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 12 May 2016 08:42:02 +0200 Subject: Update BGFX, BX, Benchmark and RapidJSON (nw) --- 3rdparty/bgfx/examples/00-helloworld/helloworld.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/bgfx/examples/00-helloworld/helloworld.cpp') diff --git a/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp b/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp index 92996ae0314..987ec881b8e 100644 --- a/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp +++ b/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp @@ -47,7 +47,7 @@ class ExampleHelloWorld : public entry::AppI if (!entry::processEvents(m_width, m_height, m_debug, m_reset) ) { // Set view 0 default viewport. - bgfx::setViewRect(0, 0, 0, m_width, m_height); + bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height) ); // This dummy draw call is here to make sure that view 0 is cleared // if no other draw calls are submitted to view 0. @@ -55,8 +55,8 @@ class ExampleHelloWorld : public entry::AppI // Use debug font to print information about this example. bgfx::dbgTextClear(); - bgfx::dbgTextImage(bx::uint16_max(m_width /2/8, 20)-20 - , bx::uint16_max(m_height/2/16, 6)-6 + bgfx::dbgTextImage(bx::uint16_max(uint16_t(m_width /2/8 ), 20)-20 + , bx::uint16_max(uint16_t(m_height/2/16), 6)-6 , 40 , 12 , s_logo -- cgit v1.2.3-70-g09d2