MACGUI: Fix incorrect logical operator usage. PVS-Studio V564

This commit is contained in:
Eugene Sandulenko 2022-10-27 22:48:19 +02:00
parent fe21b28b1f
commit 62f067a72c
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1089,7 +1089,7 @@ bool MacMenu::draw(ManagedSurface *g, bool forceRedraw) {
}
}
if ((_wm->_mode & kWMModalMenuMode) | !_wm->_screen)
if ((_wm->_mode & kWMModalMenuMode) || !_wm->_screen)
g_system->copyRectToScreen(_screen.getBasePtr(_bbox.left, _bbox.top), _screen.pitch, _bbox.left, _bbox.top, _bbox.width(), _bbox.height());