diff options
| author | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
| commit | 14d64a8adcc866deecd758b898e8ef2d836b354a (patch) | |
| tree | 83cff9669e266f8e283ccb8cd7518e909240f1e1 /src/image.c | |
| parent | bdd9b5b8a0d37dd09ee530c1dab3a44bee09e0f8 (diff) | |
| parent | ebe334cdc234de2897263aed4c05ac7088c11857 (diff) | |
| download | emacs-scratch/correct-warning-pos.tar.gz emacs-scratch/correct-warning-pos.zip | |
Merge branch 'master' into scratch/correct-warning-posscratch/correct-warning-pos
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 () |