diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/image.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0c5c98eac2e..2e9e80d938d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-01-23 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-01-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash | ||
| 4 | when calling XpmCreatePixmapFromData. | ||
| 5 | |||
| 3 | Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h. | 6 | Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h. |
| 4 | * lisp.h (SSDATA): New macro. | 7 | * lisp.h (SSDATA): New macro. |
| 5 | All uses of (char *) SDATA (x) replaced with SSDATA (x), | 8 | All uses of (char *) SDATA (x) replaced with SSDATA (x), |
diff --git a/src/image.c b/src/image.c index 542968d2a76..1cf16f6eeb1 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3334,7 +3334,7 @@ x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) | |||
| 3334 | attrs.valuemask |= XpmColormap; | 3334 | attrs.valuemask |= XpmColormap; |
| 3335 | 3335 | ||
| 3336 | rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 3336 | rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| 3337 | bits, &bitmap, &mask, &attrs); | 3337 | (char **) bits, &bitmap, &mask, &attrs); |
| 3338 | if (rc != XpmSuccess) | 3338 | if (rc != XpmSuccess) |
| 3339 | { | 3339 | { |
| 3340 | XpmFreeAttributes (&attrs); | 3340 | XpmFreeAttributes (&attrs); |