summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [e699a7b606]: Fix build on macOS<10.12 - patch from Christopher Chavez.culler2021-11-091-3/+4
|
* Menu-related code cleanup. (mainly indenting spaces -> tabs)jan.nijtmans2021-06-211-1/+1
|
* Fix [4401d32fb7]: clean up code that deals with Aqua pixel formats. Makes ↵culler2021-06-031-92/+176
|\ | | | | | | -format window work again in TkImg.
| * Merge 8.6culler2021-05-061-14/+16
| |\
| * | Use TCL_UNUSED in TkpPutRGBAImage.culler2021-05-041-12/+37
| | |
| * | Attempt to explain the complexities of RGBA and ARGB and big and little ends ↵culler2021-05-031-59/+113
| | | | | | | | | | | | and make the code deal with them as clearly as possible.
| * | Make ImageGetPixel consistent with XGetImage.culler2021-05-031-6/+6
| | |
| * | Oops. Cosmetic change meant to reduce confusion actually increased it. Try ↵culler2021-05-021-4/+4
| | | | | | | | | | | | again.
| * | ABGR -> ARGB as observed by Christopher Chavez.culler2021-05-011-3/+3
| | |
* | | A few more "const" keyword optimizationsjan.nijtmans2021-06-031-2/+2
| | |
* | | comment fixjan.nijtmans2021-05-111-1/+1
| | |
* | | Make return values for tkMacOSXPutImage consistent between 8.6 and 8.7, and ↵culler2021-05-111-4/+5
| |/ |/| | | | | document them.
* | uint32 -> uint32_t, more TCL_UNUSED() and typecastsjan.nijtmans2021-05-041-11/+15
| |
* | Eliminate TkpPutRGBAImage's first 2 parameters, since they are unusedjan.nijtmans2021-05-031-2/+2
|/
* Edit comments. Use uint32_t since Apple documentation specifies that type ↵culler2021-05-011-7/+18
| | | | for kCGImageAlphaLast etc.
* Fix [4c7d935e97]: on Aqua, checkbuttons are not rendered in the Alt theme.culler2021-04-301-20/+36
|
* Remove extra release of CGContextculler2021-04-281-1/+0
|
* Code cleanup. Thanks to Christopher Chavez for the careful review.culler2021-04-251-24/+22
|
* Use the release method instead of CFRelease for NSBitmapImageRep objects.culler2021-04-251-2/+2
|
* Bonus! Use the new CALayer to make XCopyArea work again!culler2021-04-251-36/+30
|
* More implicit type-casts, for C++ compatibility.jan.nijtmans2021-02-021-5/+5
|
* Tidy up with a patch from Christopher Chavez. Removes redundant include ↵marc_culler2020-12-161-5/+5
| | | | directives and double semicolons. Uses nil instead of NULL for references to NSObjects in Objective C.
* Rename (internal) TkMacOSXDrawableView() -> TkMacOSXGetNSViewForDrawable()jan.nijtmans2020-09-021-6/+6
|
* Eliminate MODULE_SCOPE wrapper function for TkMacOSXDrawable(). Rename ↵jan.nijtmans2020-09-021-1/+1
| | | | (internal) TkMacOSXDrawableWindow() to TkMacOSXGetNSWindowForDrawable(). Code (type-cast) cleanup
* Merge 8.5jan.nijtmans2020-08-251-1/+1
|
* Address compiler warnings.culler2020-08-231-6/+2
|
* Remove all use of XImage.pixelpower, but not the field, simplify and reorganize.culler2020-08-221-153/+458
|
* Edit comments, make some stylistic changes, remove an unused function parameter.culler2020-08-211-1/+1
|
* Edit comments.culler2020-08-031-3/+7
|
* Be a little more efficient.culler2020-08-031-2/+2
|
* Fix [fca13549b6]: TkMacOSXRGBPixel() used incorrectly in ImageGetPixel()culler2020-08-031-7/+13
|
* Clean up tkMacOSXColor.c so it is not so painful to add new colors.culler2020-07-291-1/+1
|
* Add XPutImage() to the X11 stub table on Aquajan.nijtmans2019-09-251-4/+19
|
* Mitigate future merge conflict headaches.culler2019-04-171-68/+77
|
* Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-101-1/+1
| | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
* Fix the build on Sierra and earlier.culler2018-12-011-0/+9
|
* Always check whether the return value of TkMacOSXGetTkWindow is NULL.culler2018-11-111-6/+6
|
* TkPutImage should not assume that a pixmap is transparent, even though it ↵culler2018-11-101-1/+9
| | | | does have alpha=0.
* Fixed transparency issues and crashes related to PhotoImages and greatly ↵culler2018-11-081-41/+37
| | | | | simplified the PhotoImage display procedure.
* Fix two image bugs. BitmapImageReps may have bytesPerRow > 4*width. Do not copyculler2018-11-071-3/+3
| | | from a window to a bitmap if the contentView does not have a valid graphics context.
* tkWinDialog.c: Change a LoadLibrary() call to GetModuleHandle(), since ↵jan.nijtmans2017-11-271-4/+4
| | | | | "shell32.dll" is already linked to Tk. Also various whitespace changes (mainly at line-ends) and comment fixes. Nothing functional.
* Make it possible to generate an NSImage with correct transparency from aculler2017-11-151-41/+43
| | | | photoimage. Fixes transparency issues with iconphotos and images in menus.
* Implemented a more robust and transparent scheme for makingculler2017-11-141-16/+11
| | | sure that iconphoto images are not blended with a black background.
* Fixed an issue with iconphoto where the dock icon would have aculler2017-11-131-0/+20
| | | black backround, instead of transparent, when using a PNG image.
* Small changes to address compiler warnings.culler2017-11-101-6/+6
|
* Added some #ifdef __clang__ sections to allow building with gcc on OSX 10.6.culler2017-11-091-0/+6
| | | | Tk now builds and runs on Snow Leopard, but does not support retina displays or filtering in file dialogs, and generates some errors about colorspaces.
* Minor changes to deal with compiler warnings for different OSXculler2017-11-091-5/+5
| | | versions. Now builds cleanly with deployment targets 10.6 - 10.13.
* Remove unused variables; add comments.culler2017-11-081-3/+6
|
* Cleaned up and reworked XGetImage. This seems to eliminateculler2017-11-081-85/+80
| | | | segfaults seen when rapidly resizing the scid window and may also fix [218561bf].
* Reorganization to put all code related to Ximages in the newculler2017-11-081-0/+559
file tkMacOSXImage.c