summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/image.c b/src/image.c
index f41a08eb1a8..723443193c0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7840,8 +7840,7 @@ pbm_load (struct frame *f, struct image *img)
/* Maybe fill in the background field while we have ximg handy. */
if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
- /* Casting avoids a GCC warning. */
- IMAGE_BACKGROUND (img, f, (Emacs_Pix_Context)ximg);
+ IMAGE_BACKGROUND (img, f, ximg);
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);
@@ -8586,9 +8585,8 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
img->width = width;
img->height = height;
- /* Maybe fill in the background field while we have ximg handy.
- Casting avoids a GCC warning. */
- IMAGE_BACKGROUND (img, f, (Emacs_Pix_Context)ximg);
+ /* Maybe fill in the background field while we have ximg handy. */
+ IMAGE_BACKGROUND (img, f, ximg);
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);
@@ -8597,8 +8595,8 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
if (mask_img)
{
/* Fill in the background_transparent field while we have the
- mask handy. Casting avoids a GCC warning. */
- image_background_transparent (img, f, (Emacs_Pix_Context)mask_img);
+ mask handy. */
+ image_background_transparent (img, f, mask_img);
image_put_x_image (f, img, mask_img, 1);
}
@@ -9165,8 +9163,7 @@ jpeg_load_body (struct frame *f, struct image *img,
/* Maybe fill in the background field while we have ximg handy. */
if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
- /* Casting avoids a GCC warning. */
- IMAGE_BACKGROUND (img, f, (Emacs_Pix_Context)ximg);
+ IMAGE_BACKGROUND (img, f, ximg);
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);
@@ -9606,8 +9603,7 @@ tiff_load (struct frame *f, struct image *img)
/* Maybe fill in the background field while we have ximg handy. */
if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
- /* Casting avoids a GCC warning on W32. */
- IMAGE_BACKGROUND (img, f, (Emacs_Pix_Context)ximg);
+ IMAGE_BACKGROUND (img, f, ximg);
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);
@@ -10329,8 +10325,7 @@ gif_load (struct frame *f, struct image *img)
/* Maybe fill in the background field while we have ximg handy. */
if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
- /* Casting avoids a GCC warning. */
- IMAGE_BACKGROUND (img, f, (Emacs_Pix_Context)ximg);
+ IMAGE_BACKGROUND (img, f, ximg);
/* Put ximg into the image. */
image_put_x_image (f, img, ximg, 0);