Skip to content

Commit

Permalink
fix illegal instruction due to missing return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Nettal committed May 13, 2024
1 parent 7fa83b2 commit 8c0c382
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clip_win_bmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ bool BitmapInfo::load_from(BITMAPINFO* bi) {
blue_mask = *((uint32_t*)&bi->bmiColors[2]);
if (bit_count == 32)
alpha_mask = 0xff000000;
return true;
}
else if (compression == BI_RGB) {
if (compression == BI_RGB) {
switch (bit_count) {
case 32:
red_mask = 0xff0000;
Expand All @@ -105,7 +106,9 @@ bool BitmapInfo::load_from(BITMAPINFO* bi) {
blue_mask = 0x001f;
break;
}
return true;
}
return false;
}

BitmapInfo::BitmapInfo(BITMAPV5HEADER* pb5) {
Expand Down

0 comments on commit 8c0c382

Please sign in to comment.