summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
| | * I prefer direct return from switch processing; simpler to understand.dkf2003-07-171-19/+16
| | | | | | | | | | | | Also resolves [Bug 771988] since the breaks are "wrong" in that style.
| * | Correct generation of grayscale data from an image. Reported by Keith Vetterdkf2009-09-251-3/+3
| | | | | | | | | | | | on comp.lang.tcl.
| * | * generic/tkImgPhoto.c: fix numerous leaks discovered with thedas2009-02-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c:
| * | fix for aMSN compatibility [tcl-Bug 2507326]nijtmans2009-01-141-1/+6
| | |
| * | Relax the constraint that every Tk_ImageTypenijtmans2008-11-191-12/+4
| | | | | | | | | | | | | | | | | | | | | can only be passed to Tk_CreateImageType once. This allows tkImg to be loaded in multiple interpreters in a thread-enabled build of Tk. [Bug 2312027]
* | | 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
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |