GPU: Fix operator warning

This commit is contained in:
Albert Liu 2020-12-14 17:35:01 -08:00
parent 1c8a896a55
commit 2c76ad204a

View File

@ -110,13 +110,13 @@ public:
/// Returns true if scanout should be interlaced. /// Returns true if scanout should be interlaced.
ALWAYS_INLINE bool IsInterlacedDisplayEnabled() const 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. /// Returns true if interlaced rendering is enabled and force progressive scan is disabled.
ALWAYS_INLINE bool IsInterlacedRenderingEnabled() const 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. /// Returns the number of pending GPU ticks.