Commit 46a17616 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

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.
parent 10582d05
Pipeline #1831 failed with stage
in 51 minutes and 39 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment