summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkLabel.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:49:44 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:49:44 (GMT)
commite829dc68c26b7b313b94f777def7bb49c471422b (patch)
tree04a7b96bfe837ae870d19ef78eec77aed860b817 /generic/ttk/ttkLabel.c
parent0e809f8dd3305b97598597b825333fc85204a6ef (diff)
parentdbec27a4c7733b44e33ba898fef7e8636e86caa0 (diff)
downloadtk-e829dc68c26b7b313b94f777def7bb49c471422b.zip
tk-e829dc68c26b7b313b94f777def7bb49c471422b.tar.gz
tk-e829dc68c26b7b313b94f777def7bb49c471422b.tar.bz2
[Bug 3567453]: Clip regions must be cleared with XSetClipMask and not
TkSetRegion on X11.
Diffstat (limited to 'generic/ttk/ttkLabel.c')
-rw-r--r--generic/ttk/ttkLabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index 0f554a6..0f71970 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -185,8 +185,8 @@ static void TextDraw(TextElement *text, Tk_Window tkwin, Drawable d, Ttk_Box b)
#ifdef HAVE_XFT
TkUnixSetXftClipRegion(None);
#endif
- TkSetRegion(Tk_Display(tkwin), gc1, None);
- TkSetRegion(Tk_Display(tkwin), gc2, None);
+ XSetClipMask(Tk_Display(tkwin), gc1, None);
+ XSetClipMask(Tk_Display(tkwin), gc2, None);
TkDestroyRegion(clipRegion);
}
Tk_FreeGC(Tk_Display(tkwin), gc1);