summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * [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.
* | Fix [3603436fff]: png save has wrong component indexesjan.nijtmans2013-10-281-6/+5
|\ \ | |/
| * 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")
| * merge core-8-4-branch, still to be tested on Unixtobetestedjan.nijtmans2012-05-291-0/+2
| |\
| | * Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-251-0/+2
| | | | | | | | | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll. Fix "make genstubs" when cross-compiling on UNIX
| * | make some internal tables constjan.nijtmans2012-04-181-2/+3
| |\ \ | | |/
* | | 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 3486474]: Inconsistent color scalingjan.nijtmans2012-02-151-1/+1
| |\ \ | | |/
| | * proposed fix for bug-3486474jan.nijtmans2012-02-101-1/+1
| | |
| * | Bug 3480634: PNG Images missing in menus on Macjan.nijtmans2012-01-291-1/+3
| | |
* | | Bug-2433260: non-critical error in Tk_PhotoPutBlockjan.nijtmans2012-01-251-3/+3
|\ \ \ | |/ /
| * | Bug-2433260: non-critical error in Tk_PhotoPutBlockjan.nijtmans2012-01-251-3/+3
| |\ \ | | |/
| | * Bug-2433260: non-critical error in Tk_PhotoPutBlockjan.nijtmans2012-01-251-3/+3
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkImgPhoto.c: fix leaks discovered with the Mac OS Xdas2009-02-061-1/+3
| | | | | | | | | | | | | | | * generic/tkMenu.c: Instruments.app Leaks tool. * macosx/tkMacOSXWm.c:
| | * * generic/tkImgPhoto.c (ImgPhotoConfigureInstance, DisposeInstance):das2007-06-231-20/+12
| | | | | | | | | | | | | | | | | | | | | | | | use XDestroyImage instead of XFree to destroy XImage; replace runtime endianness determination by compile-time check for WORDS_BIGENDIAN. * xlib/ximage.c (XCreateBitmapFromData): use XCreateImage and XDestroyImage instead of creating XImage structure manually.
| | * * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):hobbs2006-05-131-19/+29
| | | | | | | | | | | | | | | Fix opt added 2006-03 that caused slowdown for some common cases. [Bug 1409140]
| | * Hack to make photo-to-photo copies cheaper in the common case of no alphadkf2006-03-161-4/+26
| | |
| | * Squelch [Bug 1409140] by special-case-ing the single-pixel put case.dkf2006-03-151-3/+37
| | |
| | * Fix [Bug 1252702]dkf2005-08-111-12/+13
| | |
| | * Speed up use of Tk_PhotoPutBlock by allowing it to skip the complex-alpha checkdkf2004-12-091-3/+7
| | | | | | | | | | | | in degenerate (and common) cases. [Bug 1081966]
| | * Alpha blending fixes. [Patch 848161]dkf2004-12-031-20/+32
| | |
| | * * unix/tkUnixButton.c (TkpDisplayButton): constrain coords tohobbs2004-12-021-1/+10
| | | | | | | | | | | | | | | | | | Tk_RedrawImage to display only portion that is valid. * generic/tkImgPhoto.c (ImgPhotoDisplay): add X error suppression around XGetImage to prevent app abort. [Bug 979239]
| | * Backport of yesterday's compositing fixesdkf2004-08-051-68/+110
| | |
| | * Fix [Bug 979239] by only redrawing an image when it has real area.dkf2004-06-251-1/+10
| | |
| | * (ImgPhotoCmd): correct matched handling to that in headhobbs2004-05-031-2/+3
| | |
| | * * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): force -data intohobbs2004-05-031-5/+14
| | | | | | | | | | | | | | | | | | ByteArray and -format into String to correctly handle them if they have been shimmered or created as some other object type. (ImgPhotoCmd): correctly init matched to 0.
| | * Backport of 923555 fixesdkf2004-03-261-6/+38
| | |
| | * * macosx/tkMacOSXDraw.c:das2004-02-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]
| | * Stop crashes when copying a large photo to itself causes resizing. [Bug 877950]dkf2004-02-091-1/+8
| | |
| | * * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): add alphahobbs2003-11-111-16/+259
| | | | | | | | | | | | | | | blending for images with partial transparency. Only operates for 15bpp+ display, and not on Mac at all. [Bug 809157]
| | * Try harder to avoid zero-length mallocs()... [Bug 404421]dkf2003-07-171-25/+38
| | |