diff options
| author | 2017-08-27 11:07:21 +1000 | |
|---|---|---|
| committer | 2017-08-27 11:07:21 +1000 | |
| commit | ec3caa98bdcab04b0cb90b3cf1c1eb740433dfd6 (patch) | |
| tree | 337a198314bc8532025a9a1107430de7aafc1388 /src/tools/imgtool/modules/mac.cpp | |
| parent | d969bebe1a47abe407c3ab280227213856b257bd (diff) | |
srcclean (nw)
Diffstat (limited to 'src/tools/imgtool/modules/mac.cpp')
| -rw-r--r-- | src/tools/imgtool/modules/mac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/imgtool/modules/mac.cpp b/src/tools/imgtool/modules/mac.cpp index a65284f0b4e..546a153a7e8 100644 --- a/src/tools/imgtool/modules/mac.cpp +++ b/src/tools/imgtool/modules/mac.cpp @@ -6076,7 +6076,7 @@ static bool load_icon(uint32_t *dest, const void *resource_fork, uint64_t resour uint8_t color = get_pixel(src, width, height, bpp, x, y); // then check the mask - bool is_masked = has_mask + bool is_masked = has_mask ? get_pixel(src + frame_length, width, height, bpp, x, y) != 0 : dest[y * width + x] >= 0x80000000; |
