mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
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());
|
||||
|
||||
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();
|
||||
io.MouseDown[button - 1] = pressed;
|
||||
|
|
Loading…
Reference in a new issue