aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2019-01-18 13:03:47 -0800
committerPaul Eggert2019-01-18 13:04:09 -0800
commit7818bcdd6cd6e2fbc0b0efb35d3bb6588752c5a4 (patch)
tree78246427adc16f80e299cbf967e72a878782f074 /src/image.c
parent6bac9ea1770c0954adf5f4af660e94b5a0b09003 (diff)
downloademacs-7818bcdd6cd6e2fbc0b0efb35d3bb6588752c5a4.tar.gz
emacs-7818bcdd6cd6e2fbc0b0efb35d3bb6588752c5a4.zip
Port to platforms where NULL is a pointer
* src/image.c (x_create_x_image_and_pixmap): The Picture type is an integer, not a pointer. Come to think of it, Picture is really XID, and as far as I can tell, all-bits-one is the invalid XID, not all-bits-zero. However that is a bigger issue; for now, this patch just unbreaks the build.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index e4b097588ad..bcc61dfccda 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2200,7 +2200,7 @@ x_create_x_image_and_pixmap (struct frame *f, int width, int height, int depth,
2200 else 2200 else
2201 { 2201 {
2202 image_error ("Specified image bit depth is not supported by XRender"); 2202 image_error ("Specified image bit depth is not supported by XRender");
2203 *picture = NULL; 2203 *picture = 0;
2204 } 2204 }
2205 } 2205 }
2206# endif 2206# endif