Commit a3e681ea authored by Michel Dänzer's avatar Michel Dänzer Committed by Adam Jackson

glamor: Source pictures are always depth 32

We were using the destination pixmap depth to determine the source
picture format.

Fixes incorrect text rendering with some MATE desktop GTK3 themes.
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94246Signed-off-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
parent b05ae79e
......@@ -508,9 +508,9 @@ use_source_solid(CARD8 op, PicturePtr src, PicturePtr dst, glamor_program *prog)
glamor_set_blend(op, prog->alpha, dst);
glamor_set_color(glamor_get_drawable_pixmap(dst->pDrawable),
src->pSourcePict->solidFill.color,
prog->fg_uniform);
glamor_set_color_depth(dst->pDrawable->pScreen, 32,
src->pSourcePict->solidFill.color,
prog->fg_uniform);
return TRUE;
}
......
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