aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJoakim Verona2011-10-27 11:15:25 +0200
committerJoakim Verona2011-10-27 11:15:25 +0200
commitb70516db12801e015c538c4e7eb44cb87316afc4 (patch)
treeb5ed66a971e6f55d0b4628f7a56316b0fa383ddc /src/image.c
parent51a9916f39ce1cd562816a5429bc3cf6f407fabc (diff)
parent435c1d6793ce358f4d2c77c9e9c1ad81fd754651 (diff)
downloademacs-b70516db12801e015c538c4e7eb44cb87316afc4.tar.gz
emacs-b70516db12801e015c538c4e7eb44cb87316afc4.zip
upstream
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 ef72745a72f..14c74f10607 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2015,7 +2015,7 @@ x_create_x_image_and_pixmap (struct frame *f, int width, int height, int depth,
2015 /* Bitmaps with a depth less than 16 need a palette. */ 2015 /* Bitmaps with a depth less than 16 need a palette. */
2016 /* BITMAPINFO structure already contains the first RGBQUAD. */ 2016 /* BITMAPINFO structure already contains the first RGBQUAD. */
2017 if (depth < 16) 2017 if (depth < 16)
2018 palette_colors = 1 << depth - 1; 2018 palette_colors = 1 << (depth - 1);
2019 2019
2020 *ximg = xmalloc (sizeof (XImage) + palette_colors * sizeof (RGBQUAD)); 2020 *ximg = xmalloc (sizeof (XImage) + palette_colors * sizeof (RGBQUAD));
2021 2021