Merge pull request #358 from kwagyeman/bitmap_streaming

Fix bitmap streaming bpp value check.
This commit is contained in:
Ibrahim Abd Elkader 2018-06-22 17:19:26 +02:00 committed by GitHub
commit 560c190908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ void fb_update_jpeg_buffer()
// Unlock the framebuffer mutex
mutex_unlock(&JPEG_FB()->lock, MUTEX_TID_OMV);
}
} else if ((MAIN_FB()->bpp > 0) && JPEG_FB()->enabled) {
} else if ((MAIN_FB()->bpp >= 0) && JPEG_FB()->enabled) {
// Lock FB
if (mutex_try_lock(&JPEG_FB()->lock, MUTEX_TID_OMV)) {
// Set JPEG src and dst images.