diff options
| author | Po Lu | 2021-12-07 09:32:13 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-07 09:32:13 +0800 |
| commit | d9b3f665bc57bc78716f4c9d5efebf283f7e1964 (patch) | |
| tree | 4795b7d972c36f84ae57632922a05de2e01fd856 /src | |
| parent | 0b6a632f99214e2d1e9e1d72b8f8b3a7f054d552 (diff) | |
| parent | e17aea73a5b2ae5f7cbf9057d7dad286be81ffc0 (diff) | |
| download | emacs-d9b3f665bc57bc78716f4c9d5efebf283f7e1964.tar.gz emacs-d9b3f665bc57bc78716f4c9d5efebf283f7e1964.zip | |
Merge remote-tracking branch 'origin/master' into feature/pgtk
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/image.c b/src/image.c index f8188292d46..2c33a8eaa21 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3187,14 +3187,6 @@ gui_put_x_image (struct frame *f, Emacs_Pix_Container pimg, | |||
| 3187 | XFreeGC (FRAME_X_DISPLAY (f), gc); | 3187 | XFreeGC (FRAME_X_DISPLAY (f), gc); |
| 3188 | #endif /* HAVE_X_WINDOWS */ | 3188 | #endif /* HAVE_X_WINDOWS */ |
| 3189 | 3189 | ||
| 3190 | #ifdef HAVE_NTGUI | ||
| 3191 | #if 0 /* I don't think this is necessary looking at where it is used. */ | ||
| 3192 | HDC hdc = get_frame_dc (f); | ||
| 3193 | SetDIBits (hdc, pixmap, 0, height, pimg->data, &(pimg->info), DIB_RGB_COLORS); | ||
| 3194 | release_frame_dc (f, hdc); | ||
| 3195 | #endif | ||
| 3196 | #endif /* HAVE_NTGUI */ | ||
| 3197 | |||
| 3198 | #ifdef HAVE_NS | 3190 | #ifdef HAVE_NS |
| 3199 | eassert (pimg == pixmap); | 3191 | eassert (pimg == pixmap); |
| 3200 | ns_retain_object (pimg); | 3192 | ns_retain_object (pimg); |
| @@ -11124,16 +11116,6 @@ x_kill_gs_process (Pixmap pixmap, struct frame *f) | |||
| 11124 | free_color_table (); | 11116 | free_color_table (); |
| 11125 | #endif | 11117 | #endif |
| 11126 | XDestroyImage (ximg); | 11118 | XDestroyImage (ximg); |
| 11127 | |||
| 11128 | #if 0 /* This doesn't seem to be the case. If we free the colors | ||
| 11129 | here, we get a BadAccess later in image_clear_image when | ||
| 11130 | freeing the colors. */ | ||
| 11131 | /* We have allocated colors once, but Ghostscript has also | ||
| 11132 | allocated colors on behalf of us. So, to get the | ||
| 11133 | reference counts right, free them once. */ | ||
| 11134 | if (img->ncolors) | ||
| 11135 | x_free_colors (f, img->colors, img->ncolors); | ||
| 11136 | #endif | ||
| 11137 | } | 11119 | } |
| 11138 | else | 11120 | else |
| 11139 | image_error ("Cannot get X image of `%s'; colors will not be freed", | 11121 | image_error ("Cannot get X image of `%s'; colors will not be freed", |