summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-10 07:25:23 (GMT)
committerhobbs <hobbs>2002-10-10 07:25:23 (GMT)
commit3ba47759656cee10b3115b5b96268aad0da4aa9f (patch)
tree250461cd6dd036597827c9fd5f9314674f2a8818 /generic/tkCanvas.h
parent93fc8fee5654809e2721100af0415400b7aa157a (diff)
downloadtk-3ba47759656cee10b3115b5b96268aad0da4aa9f.zip
tk-3ba47759656cee10b3115b5b96268aad0da4aa9f.tar.gz
tk-3ba47759656cee10b3115b5b96268aad0da4aa9f.tar.bz2
* tests/canvPs.test: tests for canvas embedded window ps generation
* generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop. * generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of TkColormapData on Windows. Non-separated data may need correction as well. * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support for generating ps for embedded windows on canvases.
Diffstat (limited to 'generic/tkCanvas.h')
-rw-r--r--generic/tkCanvas.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/generic/tkCanvas.h b/generic/tkCanvas.h
index 70cb03d..cb601a9 100644
--- a/generic/tkCanvas.h
+++ b/generic/tkCanvas.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvas.h,v 1.5 2002/08/05 04:30:38 dgp Exp $
+ * RCS: @(#) $Id: tkCanvas.h,v 1.6 2002/10/10 07:25:24 hobbs Exp $
*/
#ifndef _TKCANVAS
@@ -295,18 +295,4 @@ typedef struct TkCanvas {
extern int TkCanvPostscriptCmd _ANSI_ARGS_((TkCanvas *canvasPtr,
Tcl_Interp *interp, int argc, CONST char **argv));
-/*
- * The following definition is shared between tkCanvPs.c and tkCanvImg.c,
- * and is used in generating postscript for images and windows.
- */
-
-typedef struct TkColormapData { /* Hold color information for a window */
- int separated; /* Whether to use separate color bands */
- int color; /* Whether window is color or black/white */
- int ncolors; /* Number of color values stored */
- XColor *colors; /* Pixel value -> RGB mappings */
- int red_mask, green_mask, blue_mask; /* Masks and shifts for each */
- int red_shift, green_shift, blue_shift; /* color band */
-} TkColormapData;
-
#endif /* _TKCANVAS */