diff options
author | Keith Packard <keithp@keithp.com> | 2014-10-13 12:32:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-05-14 15:55:53 -0700 |
commit | 2bf34fe8d9b7628d164392c2d11ace78f7cf17b9 (patch) | |
tree | afe2303212a46f0dd66cbd85a020cbb5e55bdcf0 /glamor/glamor_text.c | |
parent | 910ddf85219f114744e8996a4ac044c4eafc62ac (diff) |
glamor: Pass depth to glamor_pm_is_solid and glamor_set_planemask
Instead of passing the destination drawable, just pass the depth, as
the underlying functions need only that to check whether the planemask
is going to work.
This API change will allow higher level functions to not need the
destination pixmap.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glamor/glamor_text.c')
-rw-r--r-- | glamor/glamor_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_text.c b/glamor/glamor_text.c index c7c1ab738..8d8c97072 100644 --- a/glamor/glamor_text.c +++ b/glamor/glamor_text.c @@ -431,7 +431,7 @@ glamor_image_text(DrawablePtr drawable, GCPtr gc, /* Check planemask before drawing background to * bail early if it's not OK */ - if (!glamor_set_planemask(pixmap, gc->planemask)) + if (!glamor_set_planemask(gc->depth, gc->planemask)) goto bail; for (c = 0; c < count; c++) if (charinfo[c]) |