aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog2
-rw-r--r--src/image.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dcf4da4c363..e0f2ad096be 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-08-30 Eli Zaretskii <eliz@gnu.org> 12011-08-30 Eli Zaretskii <eliz@gnu.org>
2 2
3 * image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings.
4
3 * xdisp.c (produce_stretch_glyph): No longer static, compiled also 5 * xdisp.c (produce_stretch_glyph): No longer static, compiled also
4 when HAVE_WINDOW_SYSTEM is not defined. Support both GUI and TTY 6 when HAVE_WINDOW_SYSTEM is not defined. Support both GUI and TTY
5 frames. Call tty_append_glyph in the TTY case. (Bug#9402) 7 frames. Call tty_append_glyph in the TTY case. (Bug#9402)
diff --git a/src/image.c b/src/image.c
index d6bfc4050ca..c5dcbb32e5d 100644
--- a/src/image.c
+++ b/src/image.c
@@ -196,7 +196,8 @@ x_bitmap_width (FRAME_PTR f, ptrdiff_t id)
196int 196int
197x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id) 197x_bitmap_pixmap (FRAME_PTR f, ptrdiff_t id)
198{ 198{
199 return FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap; 199 /* HAVE_NTGUI needs the explicit cast here. */
200 return (int) FRAME_X_DISPLAY_INFO (f)->bitmaps[id - 1].pixmap;
200} 201}
201#endif 202#endif
202 203