summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkWidget.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2008-11-11 23:39:30 (GMT)
committerjenglish <jenglish@flightlab.com>2008-11-11 23:39:30 (GMT)
commitb230027f2cb9e767a33e63b1d09831b32431c38a (patch)
tree1b8937d5a0e60954927c62aef27a855b949b2b8b /generic/ttk/ttkWidget.c
parentd215519532e30611c242be082ed2b40ed9d9e4b1 (diff)
downloadtk-b230027f2cb9e767a33e63b1d09831b32431c38a.zip
tk-b230027f2cb9e767a33e63b1d09831b32431c38a.tar.gz
tk-b230027f2cb9e767a33e63b1d09831b32431c38a.tar.bz2
Don't crash when application uses nondefault visual [#2264732].
Diffstat (limited to 'generic/ttk/ttkWidget.c')
-rw-r--r--generic/ttk/ttkWidget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/ttk/ttkWidget.c b/generic/ttk/ttkWidget.c
index 9d23198..66ab44c 100644
--- a/generic/ttk/ttkWidget.c
+++ b/generic/ttk/ttkWidget.c
@@ -1,4 +1,4 @@
-/* $Id: ttkWidget.c,v 1.16 2008/11/09 23:53:09 jenglish Exp $
+/* $Id: ttkWidget.c,v 1.17 2008/11/11 23:39:30 jenglish Exp $
* Copyright (c) 2003, Joe English
*
* Core widget utilities.
@@ -61,8 +61,7 @@ static void SizeChanged(WidgetCore *corePtr)
static Drawable BeginDrawing(Tk_Window tkwin)
{
return Tk_GetPixmap(Tk_Display(tkwin), Tk_WindowId(tkwin),
- Tk_Width(tkwin), Tk_Height(tkwin),
- DefaultDepthOfScreen(Tk_Screen(tkwin)));
+ Tk_Width(tkwin), Tk_Height(tkwin), Tk_Depth(tkwin));
}
/* EndDrawing --