improved accuracy of MxVideoParamFlags

This is probably an MxBool, and probably all of the other functions here also take an MxBool
This commit is contained in:
itsmattkc 2023-06-12 13:04:46 -07:00
parent e42349f969
commit fa06782e08

View file

@ -52,7 +52,7 @@ class MxVideoParamFlags
m_flags1 |= ENABLE_16BIT; m_flags1 |= ENABLE_16BIT;
} }
inline void Enable16Bit(BOOL e) inline void Enable16Bit(unsigned char e)
{ {
m_flags1 = ((e << 5) ^ m_flags1) & ENABLE_16BIT ^ m_flags1; m_flags1 = ((e << 5) ^ m_flags1) & ENABLE_16BIT ^ m_flags1;
} }