summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-02-21 11:48:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-02-21 11:48:53 (GMT)
commitac156b34dafc325049c475fcccac75a9d35533bc (patch)
treee417680b93c807afaa60dad708ac97bc695bcde4 /generic
parente0de5bcca2f848dc868d307892756cc82290696a (diff)
downloadtk-ac156b34dafc325049c475fcccac75a9d35533bc.zip
tk-ac156b34dafc325049c475fcccac75a9d35533bc.tar.gz
tk-ac156b34dafc325049c475fcccac75a9d35533bc.tar.bz2
Use the panedwindow's depth, not the screen's default depth. [Bug #671122]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 3a1fa98..a096c75 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkPanedWindow.c,v 1.12 2003/02/21 01:57:51 hobbs Exp $
+ * RCS: @(#) $Id: tkPanedWindow.c,v 1.13 2003/02/21 11:48:54 dkf Exp $
*/
#include "tkPort.h"
@@ -1364,8 +1364,7 @@ DisplayPanedWindow(clientData)
*/
pixmap = 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));
/*
* Redraw the widget's background and border.
@@ -2434,8 +2433,7 @@ DisplayProxyWindow(clientData)
*/
pixmap = 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));
/*
* Redraw the widget's background and border.