mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 20:40:04 +01:00
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>
(cherry picked from commit a3e681eafa)
This commit is contained in:
parent
0220275531
commit
87c23dc471
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue