summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPs.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate all usage of WIN32 macro as well: _WIN32 is the portable macro.jan.nijtmans2014-02-101-6/+6
| | | FossilOrigin-Name: 0a0d15e12a210a8481eb0ed7da5ede3fbd2eb840
* Eliminate all usage of (deprecated) functions Tcl_VarEval and Tcl_Eval.jan.nijtmans2013-03-071-1/+1
| | | FossilOrigin-Name: 0deef053f656e065cb0bb8410a0584bc8d5c8e54
* [Bug 3565533]: Purge use of variable that was only ever checked once immediatelydkf2012-09-071-9/+4
| | | | | afterwards, except for one (buggy) case where it was checked without assignment. FossilOrigin-Name: c026b78479aebd50e598ec8a0243966a59d9b410
* minor improvements to flag handlingdkf2012-07-311-1/+1
| | | FossilOrigin-Name: 9507ac2ceef0b18eaa4733203d2e48e14f641631
* more reorganization of error codes: safety is common failure modedkf2012-07-301-1/+1
| | | FossilOrigin-Name: 5058af7c9a91e1d51c12121b7773b3ff31205a81
* Postscript generation now uses Tcl_Objs more extensively; still nasty in places.dkf2012-07-271-196/+218
| | | FossilOrigin-Name: 2ddcefc55f018fb194478ab923dbf626f41bba7f
* Much more cleaning up of result handling.dkf2012-07-231-4/+4
| | | FossilOrigin-Name: 016ad9dac31d39cbc9ded6a6e8e75c11618318a8
* consistent error formatting, added error codesdkf2012-07-211-26/+55
| | | FossilOrigin-Name: c2d3956aae53c39c1a03477aea70a363d88d012b
* Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-5/+3
| | | | | ** WORK IN PROGRESS ** FossilOrigin-Name: 6f8f9336c381b81bbe323a8399eaf4dd3f89b34f
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\ | | | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ | | | | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| | * * macosx/tkMacOSXDraw.c:das2004-02-231-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXXStubs.c: * xlib/ximage.c: fixed MacOSX XGetImage/XPutImage and related functions to deal properly with XImages copied from screen. * generic/tkCanvPs.c (TkImageGetColor): MacOSX fix. * generic/tkImgPhoto.c (ImgPhotoDisplay): enabled alpha blending for images with partial transparency on MacOSX. [Bug 809157] FossilOrigin-Name: 9cff21180c48431320ead2d4657bb56863fa28f0
| * | Squelch all mention of prolog.ps; it isn't used. [Bug 1466509]dkf2009-04-101-2/+2
| | | | | | | | | FossilOrigin-Name: 8e2d600511c8fc166138416d42d5702baa6060ae
| * | Add missing headerdgp2008-12-221-1/+2
| | | | | | | | | FossilOrigin-Name: 80711037dde0b1eb55e2576bea92d508b6de93c6
| * | Forgot that I had to add code to propagate the tkwin through the psInfoPtr.dkf2008-12-221-1/+3
| | | | | | | | | FossilOrigin-Name: ca4976d30af276db6cd8e70e9499a8e49fdb0ce4
| * | Backport of fix for [Bug 2107938].dkf2008-12-221-2/+2
| | | | | | | | | FossilOrigin-Name: 12a6be554066c0f8099a38718592a81c15c88ae8
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-3/+3
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | CONSTify everything related to Tk_ConfigSpecnijtmans2010-02-171-2/+2
| | | | | | | | | FossilOrigin-Name: f559fc100fb895481dfd6f973168d2ab38774cf2
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-18/+18
| | | | | | | | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change FossilOrigin-Name: 2f69e1bce26ca36b0ad60946c5d2d5ed4e2c5f05
* | | Simplify the postscript generation.dkf2010-01-031-7/+21
| | | | | | | | | FossilOrigin-Name: 3f29c665678a210b44963d37acbb548a233f90bc
* | | oopsdkf2009-05-011-2/+1
| | | | | | | | | FossilOrigin-Name: bed1dff9ad483c88c5ab016fe2b352da83ee1207
* | | Factor out some of the postscript generation code to the PS prolog.dkf2009-05-011-171/+51
| | | | | | | | | FossilOrigin-Name: ba8f6a43f09a8ba13d593b429d0fa9bb8c34ae79
* | | Fix potential use of uninitialized variable flagged by clang static analyzerdas2008-12-071-7/+7
| | | | | | | | | FossilOrigin-Name: 01ac8739ab148160b39d604439cdab1f4ebe4b0f
* | | fix warningdas2008-12-051-1/+2
| | | | | | | | | FossilOrigin-Name: 0f5f09f08c203a5da5953d870b69c79be3fc6b9a
* | | Improve the code to convert from pixels to pointsdkf2008-12-051-4/+7
| | | | | | | | | FossilOrigin-Name: d63b555adc35a72ebd29d63c1fb3a240a6945f07
* | | Clean up PS prolog generation, getting rid of an obsolete file, and stop textdkf2008-12-051-6/+8
| | | | | | | | | | | | | | | | | | from going wildly wrong when Xft is used. [Bug 2107938] FossilOrigin-Name: d7688f1cfc9f1daf944b5205119a040e9a0d9850
* | | Implementation of TIP 97 - canvas imove and rchars methods.dkf2008-11-011-3/+4
| | | | | | | | | FossilOrigin-Name: b63a8c792211ffa5815ce1d436e016b1e063893d
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-6/+6
|/ / | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | Tackle [Bug 1711985]dkf2007-05-031-11/+11
| | | | | | FossilOrigin-Name: 4440e13a9654ef13ef444975d65718503760fd39
* | ANSIfydkf2005-11-041-766/+733
| | | | | | FossilOrigin-Name: bc2fc8b7f46d8a503e1bb51c1b6b7f217626917c
* | * macosx/tkMacOSXDraw.c:das2004-02-231-4/+10
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXXStubs.c: * xlib/ximage.c: fixed MacOSX XGetImage/XPutImage and related functions to deal properly with XImages copied from screen. * generic/tkCanvPs.c (TkImageGetColor): MacOSX fix. [Bug 809157] FossilOrigin-Name: 98c161bad4a128dfbd3c1224e801c6b9e4f82748
* | Use Tcl_Obj-based interfaces for working with user-supplied font maps.dkf2003-08-201-27/+24
|/ | | FossilOrigin-Name: fbaf06b4fd742ec373d5c508b3f162c38935b8fb
* (TkPostscriptImage): remove unused depth var. [Bug #664787]hobbs2003-02-181-3/+2
| | | FossilOrigin-Name: c1856ca77a2e8d1d389f460d8cc8634817d6ddc8
* * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use ofhobbs2002-10-101-12/+28
| | | | | | | | | | TkColormapData on Windows (Windows now requires RGB pixel data from image). * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support for generating ps for embedded widgets on canvases on Windows, tested for 8, 16, 24 and 32-bit depths (XGetImageZPixmap not used). FossilOrigin-Name: 6b1d5fc9af236f7bba8eb38f812f6de02005c7c2
* * tests/canvPs.test: tests for canvas embedded window ps generationhobbs2002-10-101-14/+36
| | | | | | | | | | | | * 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. FossilOrigin-Name: 52521f7c4f72d9096f9e57e07e11a33fcc7e0af1
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h) FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
* Applied patch #546910 -- international postscript outputa_kovalenko2002-06-251-324/+11
| | | FossilOrigin-Name: 3213f87f2e43db53076702f7034ff9d5cd7ee226
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-5/+7
| | | | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName. FossilOrigin-Name: 933dcfe881579bb3925ff2a05e925a0bd8d67087
* * generic/tkImage.c (Tk_PostscriptImage): added check to createhobbs2000-04-251-2/+464
| | | | | | | | | | | | | necessary prolog for photos * generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for photo images * generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that in as ps proc in tkPhotoImageType. * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: added Tk_PostscriptPhoto FossilOrigin-Name: 3842066784654591370edf7d879dc46fb6bf3308
* * generic/tkStubInit.c:hobbs1999-12-141-104/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkDecls.h: * generic/tkIntXlibDecls.h: * generic/tkInt.decls: added XSetDashes and XWarpPointer * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved two spots * generic/tk.h: added Tk_SmoothMethod struct, state item to canvas record, #defines for item state, support for using old char*-based canvas item C creation procedures with -DUSE_OLD_CANVAS, Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs, decls for dash, outline and postscript routines * generic/tkBind.c: added support for Quadruple clicks, and added the -warp option to 'event' with pointer warping routines * xlib/xgc.c: * generic/tkRectOval.c: * generic/tkCanvArc.c: * generic/tkCanvBmap.c: * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvPs.c: * generic/tkCanvText.c: * generic/tkCanvUtil.c: * generic/tkCanvWind.c: * generic/tkCanvas.c: * generic/tkCanvas.h: Canvas and items received overhaul to with the addition of the dash patch (Nijtmans, et al) This includes objectification of the 'canvas' command, as well as support for (where appropriate) dashes in items, extended stipple support, state for all items, and postscript generation of images and windows. See the new canvas man page for related docs. * generic/tkEntry.c: added entry widget validation, see entry.n * generic/tkEvent.c: on simulated events, ButtonPress should be matched with ButtonRelease to be correct * generic/tkFont.c: corrected possible null reference * generic/tkFrame.c: made frame a Tcl_Obj based command * generic/tkGet.c: added TkGetDoublePixels * generic/tkImage.c: bug fixes from Img patch and new Tk_PostscriptImage and Tk_SetTSOrigin functions * generic/tkImgBmap.c: new ImgBmapPostscript function * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto * generic/tkInt.h: declarations for some new functions * generic/tkMessage.c: reworked relief drawing * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style ConfigureWidget calls can pass in Tcl_Obj arrays * generic/tkScrollbar.c: * generic/tkScrollbar.h: made -orient use an option table * generic/tkText.c: * generic/tkText.h: made -wrap and -state use option tables * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextMark.c: * generic/tkTextTag.c: * generic/tkTextWind.c: added support for -elide and -state hidden * generic/tkTrig.c: changed TkMakeBezierCurve to support returning the upper limit of points needed for spline * generic/tkUtil.c: new option table parsing routines * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState FossilOrigin-Name: 363f59223dec9d67615c7ab2b8e68ff6a543ddd6
* * Merged 8.1 branch into the main trunkstanton1999-04-161-24/+25
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Added missing line terminatorcore-8-0-3stanton1998-09-221-2/+2
| | | FossilOrigin-Name: 09a61d074fd5a1a82911861bba083817c257980a
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-2/+2
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* plugin updateswelch1998-06-271-95/+318
| | | FossilOrigin-Name: befe66b22e9b72d0c0556aa1f4032dfae719f2e0
* Initial revisionrjohnson1998-04-011-0/+1163
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4