From b230b6e0f64dad1f431a38b7c93f2e6ba89757c3 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 31 May 2019 16:30:11 -0700 Subject: [PATCH] Qt: Clang buildfixes --- src/platform/qt/FrameView.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/platform/qt/FrameView.cpp b/src/platform/qt/FrameView.cpp index 989e0f775..22bac7fce 100644 --- a/src/platform/qt/FrameView.cpp +++ b/src/platform/qt/FrameView.cpp @@ -10,6 +10,7 @@ #include #include +#include #include "CoreController.h" @@ -135,10 +136,10 @@ void FrameView::updateTilesGBA(bool force) { int mode = GBARegisterDISPCNTGetMode(io[REG_DISPCNT >> 1]); std::array enabled{ - GBARegisterDISPCNTIsBg0Enable(io[REG_DISPCNT >> 1]), - GBARegisterDISPCNTIsBg1Enable(io[REG_DISPCNT >> 1]), - GBARegisterDISPCNTIsBg2Enable(io[REG_DISPCNT >> 1]), - GBARegisterDISPCNTIsBg3Enable(io[REG_DISPCNT >> 1]), + bool(GBARegisterDISPCNTIsBg0Enable(io[REG_DISPCNT >> 1])), + bool(GBARegisterDISPCNTIsBg1Enable(io[REG_DISPCNT >> 1])), + bool(GBARegisterDISPCNTIsBg2Enable(io[REG_DISPCNT >> 1])), + bool(GBARegisterDISPCNTIsBg3Enable(io[REG_DISPCNT >> 1])), }; for (int priority = 0; priority < 4; ++priority) {