Skip to content

Commit

Permalink
bfOffBits announces the start of pixel data, transparency is now working
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Apr 9, 2024
1 parent ddc3c1b commit 87680ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osd/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int parse_bitmap(const char *filename, OSD_BITMAPFILEHEADER *pBmpFileHeader, OSD
return -1;
}

if (pBmpInfo->bmiHeader.biCompression)
if (pBmpInfo->bmiHeader.biCompression != 0 && pBmpInfo->bmiHeader.biCompression != 3)
{
fprintf(stderr, "not support compressed bitmap file!\n");
fclose(pFile);
Expand Down

0 comments on commit 87680ca

Please sign in to comment.