[client] fix invalid bitwise comparison

This commit is contained in:
Geoffrey McRae 2022-05-04 11:02:02 +10:00
parent 81f91caf0e
commit 7b7a06b63f

View File

@ -619,7 +619,7 @@ int main_frameThread(void * unused)
lgrFormat.stride = frame->stride; lgrFormat.stride = frame->stride;
lgrFormat.pitch = frame->pitch; lgrFormat.pitch = frame->pitch;
if (frame->flags && FRAME_FLAG_TRUNCATED) if (frame->flags & FRAME_FLAG_TRUNCATED)
{ {
const float needed = const float needed =
((frame->screenHeight * frame->pitch * 2) / 1048576.0f) + 10.0f; ((frame->screenHeight * frame->pitch * 2) / 1048576.0f) + 10.0f;