summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-02-23 17:19:03 +0900
committerAdam Jackson <ajax@redhat.com>2016-03-08 15:17:19 -0500
commita3e681eafa5355b8bb3b099d47983f14f0d5e197 (patch)
treee6809a306a9edd21e5f2d3269d800ce448fc0420
parentb05ae79ee3bebef9790c97eedc033d1ffb3ec39a (diff)
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 <ajax@redhat.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94246 Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--glamor/glamor_program.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c
index ddab16f..0a94de6 100644
--- a/glamor/glamor_program.c
+++ b/glamor/glamor_program.c
@@ -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;
}