diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index 1303a931263..d82fedb8dea 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3718,7 +3718,7 @@ xpm_load (struct frame *f, struct image *img) | |||
| 3718 | } | 3718 | } |
| 3719 | 3719 | ||
| 3720 | #ifdef USE_CAIRO | 3720 | #ifdef USE_CAIRO |
| 3721 | // Load very specific Xpm:s. | 3721 | /* Load very specific Xpm:s. */ |
| 3722 | if (rc == XpmSuccess | 3722 | if (rc == XpmSuccess |
| 3723 | && img->ximg->format == ZPixmap | 3723 | && img->ximg->format == ZPixmap |
| 3724 | && img->ximg->bits_per_pixel == 32 | 3724 | && img->ximg->bits_per_pixel == 32 |
| @@ -3742,7 +3742,7 @@ xpm_load (struct frame *f, struct image *img) | |||
| 3742 | int maskidx = mid ? i * img->mask_img->bytes_per_line + k/8 : 0; | 3742 | int maskidx = mid ? i * img->mask_img->bytes_per_line + k/8 : 0; |
| 3743 | int mask = mid ? mid[maskidx] & (1 << (k % 8)) : 1; | 3743 | int mask = mid ? mid[maskidx] & (1 << (k % 8)) : 1; |
| 3744 | 3744 | ||
| 3745 | if (mask) od[idx] = id[idx] + 0xff000000; // ff => full alpha | 3745 | if (mask) od[idx] = id[idx] + 0xff000000; /* ff => full alpha */ |
| 3746 | else od[idx] = bgcolor; | 3746 | else od[idx] = bgcolor; |
| 3747 | } | 3747 | } |
| 3748 | } | 3748 | } |