DolphinQt: Fix some warnings

This commit is contained in:
spycrab
2019-01-25 17:21:38 +01:00
parent 6962d5bc52
commit f908612452
4 changed files with 5 additions and 5 deletions

View File

@ -268,7 +268,7 @@ void RenderWidget::PassEventToImGui(const QEvent* event)
// The actual text input goes through AddInputCharactersUTF8().
const QKeyEvent* key_event = static_cast<const QKeyEvent*>(event);
const bool is_down = event->type() == QEvent::KeyPress;
const int key = (key_event->key() & 0x1FF);
const u32 key = static_cast<u32>(key_event->key() & 0x1FF);
auto lock = g_renderer->GetImGuiLock();
if (key < ArraySize(ImGui::GetIO().KeysDown))
ImGui::GetIO().KeysDown[key] = is_down;