summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.c
Commit message (Collapse)AuthorAgeFilesLines
* some more int -> size_t changesjan.nijtmans2013-02-011-3/+2
| | | FossilOrigin-Name: af0c7cac75e785ca92c44fd60ff1a589e5d26857
* Working towards making the error codes more consistent.dkf2012-07-301-2/+2
| | | FossilOrigin-Name: 45327b3d6fc9c1c7c415e8c25e98639bed019d84
* Postscript generation now uses Tcl_Objs more extensively; still nasty in places.dkf2012-07-271-19/+61
| | | FossilOrigin-Name: 2ddcefc55f018fb194478ab923dbf626f41bba7f
* consistent error formatting, added error codesdkf2012-07-211-0/+2
| | | FossilOrigin-Name: c2d3956aae53c39c1a03477aea70a363d88d012b
* 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
* | | [Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.pspjuth2011-04-221-0/+1
|\ \ \ | |/ / | | | FossilOrigin-Name: 5df336a562b4333139344216c19bacfe2b083ba0
| * | [Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.pspjuth2011-04-221-0/+1
| |\ \ | | |/ | | | FossilOrigin-Name: 7262cbf02c025fff0a5274b344e35ac0e335242f
| | * [Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.pspjuth2011-04-221-0/+1
| | | | | | | | | FossilOrigin-Name: 22a6a821eee475ce38da9a624652edff123f8a70
| | * * changes: updates for 8.4.14 release.das2006-10-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDraw.c: fix numerous issues in CG and QD drawing procs so that they now match X11 drawing much more closely [Bug 1558051]; use Tiger ellipse drawing API when available; fix comments & whitespace. * macosx/tkMacOSXInit.c: set default linewidth limit for CG antialiasing to 0 as thin horizontal/vertical lines look good now. * generic/tkCanvLine.c (ConfigureLine): on TkAqua, pass outline * generic/tkCanvPoly.c (ConfigurePolygon): linewidth in gc even for * generic/tkRectOval.c (ConfigureRectOval): fills (as it controls AA). FossilOrigin-Name: d5ad7c09bcdb5331665449c5bd2d5b0a3d8e59c5
| | * Fix [Bug 1252702]dkf2005-08-111-4/+4
| | | | | | | | | FossilOrigin-Name: 0d9c0d50f9e08497b916aa770edafc9c66780258
| | * * generic/tkCanvPoly.c (PolygonToPostscript):hobbs2003-05-111-3/+6
| | | | | | | | | | | | | | | | | | | | | * tests/canvPs.test: correct crash when generating postscript for a single-line polygon (point) with no color. [Bug #734498] (wilm) FossilOrigin-Name: 55f672ad59cb653259592634f168f2d7da67bc41
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-20/+15
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-191-2/+2
| | | | | | | | | | | | | | | Tcl_Panic() outputs a final newline already FossilOrigin-Name: 870897bc1502c066afe8990a9381898f9e804d32
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-7/+7
| | | | | | | | | FossilOrigin-Name: 0d406a834b9595e63e75feebf8d48fe9915a58df
* | | 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
* | | A few const -> CONST86 modifications, improvingnijtmans2009-01-061-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | backwards compatibility. Change Tk_ItemIndexProc and Tk_ItemInsertProc signature to have a Tcl_Obj parameter in stead of a string parameter. This is binary and source compatible with previous API, it just prevents the need for a type cast in the Tk_ItemType table construction. Bring doc in line with API. FossilOrigin-Name: 88f4039ab41ab8aced179764fc4b283e2e45cc0f
* | | One more (hopefully the last) signature changenijtmans2008-11-091-2/+2
| | | | | | | | | | | | | | | | | | in Tk_CreateSmoothMethod. FossilOrigin-Name: 8f425191f2762032c69de53b78eb4059a27fae14
* | | make all Tk_CustomOption tables const andnijtmans2008-11-091-7/+7
| | | | | | | | | | | | | | | | | | remove unnecessary type cast FossilOrigin-Name: 7ed7342a0e8b8bc580bc760cc25dea8cf0fc2bc5
* | | Implementation of TIP 97 - canvas imove and rchars methods.dkf2008-11-011-177/+193
| | | | | | | | | FossilOrigin-Name: b63a8c792211ffa5815ce1d436e016b1e063893d
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-15/+9
| | | | | | | | | FossilOrigin-Name: 8cc51975139f771898f1b3ab9da8b2e7c02f9905
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-22/+22
|/ / | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | * changes: updates for 8.5a5 release.das2006-10-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDraw.c: fix numerous issues in CG and QD drawing procs so that they now match X11 drawing much more closely [Bug 1558051]; use Tiger ellipse drawing API when available; fix comments & whitespace. * macosx/tkMacOSXInit.c: set default linewidth limit for CG antialiasing to 0 as thin horizontal/vertical lines look good now. * generic/tkCanvLine.c (ConfigureLine): on TkAqua, pass outline * generic/tkCanvPoly.c (ConfigurePolygon): linewidth in gc even for * generic/tkRectOval.c (ConfigureRectOval): fills (as it controls AA). FossilOrigin-Name: 7b1e53886b88dff3ecd90a0b5a1a620b7f7a60cf
* | Lots of ANSIfying of function decls.dkf2005-11-171-12/+16
| | | | | | | | | | | | Also a few spots where code has been cleaned up more completely. FossilOrigin-Name: 2a0a22abb40373f8ef0be9a59e98a390b59ee72f
* | ANSIfydkf2005-11-041-452/+455
| | | | | | FossilOrigin-Name: bc2fc8b7f46d8a503e1bb51c1b6b7f217626917c
* | Getting more systematic about styledkf2005-08-101-4/+4
| | | | | | | | | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* | * generic/tkCanvPoly.c (PolygonToPostscript):hobbs2003-05-111-3/+6
|/ | | | | | | * tests/canvPs.test: correct crash when generating postscript for a single-line polygon (point) with no color. [Bug #734498] (wilm) FossilOrigin-Name: da0424bd6c23fd9034cd30cbfed4dd5d8cf1990b
* * generic/tkCanvArc.c (CreateArc): Rework canvas create itemhobbs2003-02-091-4/+9
| | | | | | | | | | | | | | | | * generic/tkCanvBmap.c (CreateBitmap): type coords handling to be * generic/tkCanvImg.c (CreateImage): consistent across types * generic/tkCanvPoly.c (CreatePolygon): and not pass empty coords * generic/tkCanvLine.c (CreateLine): to item creation procs. * generic/tkCanvText.c (CreateText): * generic/tkCanvWind.c (CreateWinItem): * generic/tkCanvas.c (CanvasWidgetCmd CANV_CREATE): * generic/tkRectOval.c (CreateRectOval): * tests/canvRect.test: * tests/canvText.test: * tests/canvas.test: FossilOrigin-Name: 940279e11eb4e8a562733a47cb3345a14014e4c3
* 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
* * tests/canvas.test:hobbs2001-07-041-13/+8
| | | | | | | | * generic/tkCanvPoly.c (PolygonToArea): Added patch that respects the polygon difference of including points in the polygon even when fill is empty. [Bug #226357] FossilOrigin-Name: 3734d49c9c1e7e95032d4a89c712872746b52fd7
* * generic/tkCanvArc.c:hobbs2001-07-031-46/+45
| | | | | | | | | | | | | * generic/tkCanvBmap.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkRectOval.c: corrected argument handling in Create<Item> functions that could lead to ABRs or FMRs and corrected names of argc/argv to objc/objv. FossilOrigin-Name: 3f8a55343c45de15bfeb8794b4c28537b170b719
* * canvas.test: added test for 5783.hobbs2000-06-031-3/+4
| | | | | | | * generic/tkCanvPoly.c (DisplayPolygon): added checks for the polygon fillGC not being empty to prevent segfault. [Bug: 5783] FossilOrigin-Name: 1868c540698585388d2bffd7c3534a824b9fabc0
* * generic/tkRectOval.c (ConfigureRectOval):hobbs2000-02-011-2/+2
| | | | | | | | | | | | | | | * generic/tkCanvLine.c (ConfigureLine): * generic/tkCanvPoly.c (ConfigurePoly): * generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for negative dash values [Bug: 4104] * generic/tkScale.c (TkRoundToResolution): fixed incorrect assumption that (N+1)*delta = N*delta + delta with floating point math [Bug: 3689, 4099] (DestroyScale) Fixed check for cancelling TkpDisplayScale (was REDRAW_ALL, is now REDRAW_PENDING) FossilOrigin-Name: 5e295d879b98ead52bc6eb51dc3c636e202b2597
* * generic/tkStubInit.c:hobbs1999-12-141-177/+1111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-6/+7
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+998
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4