VS: Fixing L4 warnings.

This commit is contained in:
Branimir Karadžić
2017-03-11 14:44:00 -08:00
parent 37cb5f3b1f
commit 46ec8d3ca4
7 changed files with 21 additions and 17 deletions

View File

@@ -759,8 +759,8 @@ int _main_(int _argc, char** _argv)
| (mouseState.m_buttons[entry::MouseButton::Right ] ? IMGUI_MBUT_RIGHT : 0)
| (mouseState.m_buttons[entry::MouseButton::Middle] ? IMGUI_MBUT_MIDDLE : 0)
, mouseState.m_mz
, width
, height
, uint16_t(width)
, uint16_t(height)
);
static bool help = false;
@@ -878,7 +878,7 @@ int _main_(int _argc, char** _argv)
float ortho[16];
bx::mtxOrtho(ortho, 0.0f, (float)width, (float)height, 0.0f, 0.0f, 1000.0f);
bgfx::setViewTransform(0, NULL, ortho);
bgfx::setViewRect(0, 0, 0, width, height);
bgfx::setViewRect(0, 0, 0, uint16_t(width), uint16_t(height) );
bgfx::touch(0);
bgfx::dbgTextClear();