summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules/mac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/modules/mac.cpp')
-rw-r--r--src/tools/imgtool/modules/mac.cpp2
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;