summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkLabel.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:47:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:47:03 (GMT)
commitdbec27a4c7733b44e33ba898fef7e8636e86caa0 (patch)
tree8e87eab00435411297e7e09440a4fe70b575b40a /generic/ttk/ttkLabel.c
parent799666382d309825a9bd5d7205fd05662a742391 (diff)
downloadtk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.zip
tk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.tar.gz
tk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.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 55bf36d..597682f 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);