summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo ↵jan.nijtmans2017-01-111-1/+5
|\ | | | | | | commands read/write/put do not accept "-" as first letter in file names resp. image data
| * Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo ↵jan.nijtmans2017-01-111-0/+4
| |\ | | | | | | | | | commands read/write/put do not accept "-" as first letter in file names resp. image data
| | * Alternative proposed solution for ↵bug_d4fb4e80d2_altjan.nijtmans2017-01-111-1/+5
| |/ |/| | | | | [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2], with test-case.
* | More internal use of size_t. Add test-case imgPhoto-4.74, which shows ↵jan.nijtmans2017-01-101-18/+26
| | | | | | | | error-handling when there are two values on the command line not connected to options.
* | Fixed broken trunk caused by "signed/unsigned mismatch" compiler error on ↵fvogel2015-06-011-3/+3
| | | | | | | | Windows, introduced by [4fe3c06b97] and [07622d5618]
* | Initialize memory to stop valgrind notices about conditionals dependent ondgp2015-05-201-0/+3
| | | | | | reads from uninit memory.
* | [dece631375] Prevent overflows in photo image memory allocations.dgp2015-05-181-13/+33
|\ \
| * | Repair last commit.dgp2015-05-181-6/+4
| | |
| * | [dece631375] Prevent overflows in photo image memory allocations.dgp2015-05-181-13/+35
|/ /
* | [dece63137] Correct problems with overflow computing memory block sizes.dgp2015-05-151-10/+10
| |
* | [06c3fcb136] ImgGetPhoto() had some code misplaced in an earlier commitdgp2015-05-051-3/+3
|\ \ | | | | | | | | | | | | so that it failed to tell all callers when the alpha channel was fully opaque. This triggered another bug in the PNG writer where the alpha vs. non-alpha format choice was broken and confused, leading to corrupt png image files.
* \ \ Fix [3603436fff]: png save has wrong component indexesjan.nijtmans2013-10-281-6/+5
|\ \ \
* | | | Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-6/+6
| | | | | | | | | | | | exists and is used.
* | | | Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-6/+6
| | | | | | | | | | | | | | | | Tcl_GetIndexFromObjStruct.
* | | | Use internalRep.twoPtrValue.ptr1 in stead of internalRep.otherValuePtr ↵jan.nijtmans2013-02-011-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | everywhere. Change some internal "length" variables from type int to type size_t, so it could handle bigger string sizes (for "novem")
* | | | | minor improvements to flag handlingdkf2012-07-311-4/+4
| | | | |
* | | | | more reorganization of error codes: safety is common failure modedkf2012-07-301-3/+3
| | | | |
* | | | | more auditing of error codesdkf2012-07-301-4/+7
| | | | |
* | | | | Working towards making the error codes more consistent.dkf2012-07-301-32/+35
| | | | |
* | | | | Purged Tcl_AppendElement from all non-test code.dkf2012-07-291-91/+84
| | | | |
* | | | | Much more cleaning up of result handling.dkf2012-07-231-90/+111
| | | | |
* | | | | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-8/+62
| | | | | | | | | | | | | | | ** WORK IN PROGRESS **
* | | | | [Bug 3486474]: Inconsistent color scalingjan.nijtmans2012-02-151-1/+1
|\ \ \ \ \
* \ \ \ \ \ Bug-2433260: non-critical error in Tk_PhotoPutBlockjan.nijtmans2012-01-251-3/+3
|\ \ \ \ \ \
* \ \ \ \ \ \ Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ \ \ \ \
* | | | | | | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | using useful casts internally.
* | | | | | | | * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):dkf2010-10-011-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Bug 3078902]: Ensure that zero-dimensioned data blocks cause no changes at all instead of causing a hang.
* | | | | | | | * generic/tkImgPhoto.c (ImgPhotoCmd): [Bug 2983824]: Use the filedkf2010-04-091-19/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extension to guess the output format to use if one isn't specified.
* | | | | | | | CONSTify everything related to Tk_ConfigSpecnijtmans2010-02-171-2/+2
| | | | | | | |
* | | | | | | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-151/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const"
* | | | | | | | fix more gcc warnings: missing initializernijtmans2010-01-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* | | | | | | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-5/+5
| | | | | | | |
* | | | | | | | Correct generation of grayscale data from an image. Reported by Keith Vetterdkf2009-09-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on comp.lang.tcl.
* | | | | | | | fix typo that led to crashesdas2009-01-191-3/+3
| | | | | | | |
* | | | | | | | - fix for aMSN compatibility [tcl-Bug 2507326]nijtmans2009-01-141-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - CONSTify Tk(Create|Find)menuReferences - various internal "const" decorations
* | | | | | | | Apply [Patch 1539990] to speed up Tk_PhotoPutBlock in one case.dkf2009-01-061-10/+15
| | | | | | | |
* | | | | | | | Minor simplification in fix for [Bug 2312027]:nijtmans2008-11-181-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no need to malloc and copy photo type name because it is a constant to begin with. Convert Tcl_SetResult(......, TCL_DYNAMIC) to Tcl_SetResult(......, TCL_VOLATILE), in preparation for TIP #340
* | | | | | | | fix [Bug 2265860] new test failuresnijtmans2008-11-121-2/+2
| | | | | | | |
* | | | | | | | modify Tk_Create(Old)ImageType signature, relaxingnijtmans2008-11-121-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the constraint that every Tk_ImageType can only be passed to this function once. This allows tkImg to be loaded in multiple interpreters in a thread-enabled build of Tk. This CONSTification complies with TIP #27. It is binary compatible with the old interface, but not fully source compatible (although tkImg does not suffer).
* | | | | | | | One more (hopefully the last) signature changenijtmans2008-11-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in Tk_CreatePhotoImageFormat
* | | | | | | | CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindownijtmans2008-10-281-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c)
* | | | | | | | Add "const" to many internalnijtmans2008-10-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | | | | | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-6/+15
| | | | | | | |
* | | | | | | | * generic/tkImgPhoto.c: Changed TclStack* calls to ck* calls so thatdgp2008-08-281-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we don't create new dependencies on Tcl internals. * unix/tkUnixPort.h: Removed #include of tclInt.h that has been * win/tkWinPort.h: disabled for three years. If we needed this we'd have noticed by now.
* | | | | | | | Fix crash reported by Don Porter.dkf2008-08-251-1/+3
| | | | | | | |
* | | | | | | | Split the photo image core into two pieces to make it easier to maintain.dkf2008-08-251-2170/+64
| | | | | | | |
* | | | | | | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-7/+7
| | | | | | | |
* | | | | | | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-53/+49
| | | | | | | |
| | | | | | | * Remove multiple deprecated internal API calls on OS X; streamline Apple ↵Kevin Walzer2015-11-251-1/+5
| | | | | | |/ | | | | | | | | | | | | | | | | | | | | | Events implementation; thanks to Marc Culler for extensive patches
| | | | | | * [3603436][06c3fcb136] Correction to earlier bugfix. When alpha values aredgp2015-05-051-3/+3
| | | | | |/ | | | | | | | | | | | | | | | | | | all opaque, so that image format writers may use non-alpha supporting formats losslessly, make sure that message always gets back to the caller.