diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c index a4976caba86..ce9af2dd677 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2906,9 +2906,8 @@ x_create_xrender_picture (struct frame *f, Emacs_Pixmap pixmap, int depth) | |||
| 2906 | { | 2906 | { |
| 2907 | Picture p; | 2907 | Picture p; |
| 2908 | Display *display = FRAME_X_DISPLAY (f); | 2908 | Display *display = FRAME_X_DISPLAY (f); |
| 2909 | int event_basep, error_basep; | ||
| 2910 | 2909 | ||
| 2911 | if (XRenderQueryExtension (display, &event_basep, &error_basep)) | 2910 | if (FRAME_DISPLAY_INFO (f)->xrender_supported_p) |
| 2912 | { | 2911 | { |
| 2913 | if (depth <= 0) | 2912 | if (depth <= 0) |
| 2914 | depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f)); | 2913 | depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f)); |
| @@ -11198,8 +11197,7 @@ The list of capabilities can include one or more of the following: | |||
| 11198 | # elif defined (HAVE_X_WINDOWS) && defined (HAVE_XRENDER) | 11197 | # elif defined (HAVE_X_WINDOWS) && defined (HAVE_XRENDER) |
| 11199 | int event_basep, error_basep; | 11198 | int event_basep, error_basep; |
| 11200 | 11199 | ||
| 11201 | if (XRenderQueryExtension (FRAME_X_DISPLAY (f), | 11200 | if (FRAME_DISPLAY_INFO (f)->xrender_supported_p) |
| 11202 | &event_basep, &error_basep)) | ||
| 11203 | return list2 (Qscale, Qrotate90); | 11201 | return list2 (Qscale, Qrotate90); |
| 11204 | # elif defined (HAVE_NTGUI) | 11202 | # elif defined (HAVE_NTGUI) |
| 11205 | return (w32_image_rotations_p () | 11203 | return (w32_image_rotations_p () |