QtHostInterface: Fix compiler warning
This commit is contained in:
parent
71cef1de3f
commit
9d6325f828
|
@ -285,7 +285,7 @@ void QtHostInterface::onDisplayWindowMouseButtonEvent(int button, bool pressed)
|
||||||
{
|
{
|
||||||
DebugAssert(isOnWorkerThread());
|
DebugAssert(isOnWorkerThread());
|
||||||
|
|
||||||
if (ImGui::GetCurrentContext() && (button > 0 && button <= countof(ImGuiIO::MouseDown)))
|
if (ImGui::GetCurrentContext() && (button > 0 && button <= static_cast<int>(countof(ImGuiIO::MouseDown))))
|
||||||
{
|
{
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.MouseDown[button - 1] = pressed;
|
io.MouseDown[button - 1] = pressed;
|
||||||
|
|
Loading…
Reference in New Issue