From 2c76ad204a45c8858942c8561375dfc403032552 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Mon, 14 Dec 2020 17:35:01 -0800 Subject: [PATCH] GPU: Fix operator warning --- src/core/gpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu.h b/src/core/gpu.h index 47242a74f..13024a26b 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -110,13 +110,13 @@ public: /// Returns true if scanout should be interlaced. ALWAYS_INLINE bool IsInterlacedDisplayEnabled() const { - return (!m_force_progressive_scan) & m_GPUSTAT.vertical_interlace; + return (!m_force_progressive_scan) && m_GPUSTAT.vertical_interlace; } /// Returns true if interlaced rendering is enabled and force progressive scan is disabled. ALWAYS_INLINE bool IsInterlacedRenderingEnabled() const { - return (!m_force_progressive_scan) & m_GPUSTAT.SkipDrawingToActiveField(); + return (!m_force_progressive_scan) && m_GPUSTAT.SkipDrawingToActiveField(); } /// Returns the number of pending GPU ticks.