emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 46a1761: Fix breakage of native image scaling on XR


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] master 46a1761: Fix breakage of native image scaling on XRENDER by previous change
Date: Wed, 29 May 2019 21:05:57 -0400 (EDT)

branch: master
commit 46a176169b9050a5e6d97b11f265bd58b4b5eb05
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    Fix breakage of native image scaling on XRENDER by previous change
    
    * src/image.c (image_create_x_image_and_pixmap_1) [HAVE_XRENDER]: Get depth 
if
    it is unspecified.
---
 src/image.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/image.c b/src/image.c
index 70ca107..c5d97e0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2270,6 +2270,8 @@ image_create_x_image_and_pixmap_1 (struct frame *f, int 
width, int height, int d
   int event_basep, error_basep;
   if (picture && XRenderQueryExtension (display, &event_basep, &error_basep))
     {
+      if (depth <= 0)
+       depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f));
       if (depth == 32 || depth == 24 || depth == 8)
         {
           XRenderPictFormat *format;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]