mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
* image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
when calling XpmCreatePixmapFromData.
This commit is contained in:
parent
ce504ff0c9
commit
f77fabaf6b
@ -1,5 +1,8 @@
|
||||
2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
|
||||
when calling XpmCreatePixmapFromData.
|
||||
|
||||
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
|
||||
* lisp.h (SSDATA): New macro.
|
||||
All uses of (char *) SDATA (x) replaced with SSDATA (x),
|
||||
|
@ -3334,7 +3334,7 @@ x_create_bitmap_from_xpm_data (struct frame *f, const char **bits)
|
||||
attrs.valuemask |= XpmColormap;
|
||||
|
||||
rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
|
||||
bits, &bitmap, &mask, &attrs);
|
||||
(char **) bits, &bitmap, &mask, &attrs);
|
||||
if (rc != XpmSuccess)
|
||||
{
|
||||
XpmFreeAttributes (&attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user