summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2021-02-021-5/+5
|\
| * More implicit type-casts, for C++ compatibility.jan.nijtmans2021-02-021-5/+5
| |
* | Merge 8.6marc_culler2020-12-161-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.
* | (c) -> ©jan.nijtmans2020-12-091-4/+4
| |
* | Merge 8.6jan.nijtmans2020-09-021-6/+6
|\ \ | |/
| * Rename (internal) TkMacOSXDrawableView() -> TkMacOSXGetNSViewForDrawable()jan.nijtmans2020-09-021-6/+6
| |
* | Merge 8.6jan.nijtmans2020-09-021-2/+2
|\ \ | |/
| * Eliminate MODULE_SCOPE wrapper function for TkMacOSXDrawable(). Rename ↵jan.nijtmans2020-09-021-1/+1
| | | | | | | | (internal) TkMacOSXDrawableWindow() to TkMacOSXGetNSWindowForDrawable(). Code (type-cast) cleanup
* | Merge 8.6jan.nijtmans2020-08-271-1/+1
|\ \ | |/ | | | | More code cleanup Restore binary compatibility with Tk 8.6 for TkMacOSXInitAppleEvents()/TkGenWMConfigureEvent()/TkMacOSXInvalClipRgns()/Tk_MacOSXSetupTkNotifier()/Tk_MacOSXIsAppInFront() (please don't renumber already-existing stub entries)
* | We don't have to preserve cruft in trunk, so let's get rid of it.culler2020-08-261-1/+1
| |
* | Merge 8.6jan.nijtmans2020-08-251-1/+1
|\ \ | |/
| * Merge 8.5jan.nijtmans2020-08-251-1/+1
| |
* | Move XGetImage and XCopyArea to tkMacOSXImage.c and completely remove ↵culler2020-08-241-165/+463
|\ \ | |/ | | | | XImage.pixelpower.
| * 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
| |
* | Add the remaining (cosmetic) changes from the mac_clip branch.culler2020-08-211-1/+1
|\ \ | |/
| * Edit comments, make some stylistic changes, remove an unused function parameter.culler2020-08-211-1/+1
| |
* | Merge 8.6jan.nijtmans2020-08-041-7/+17
|\ \ | |/
| * 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
| |
* | Another round of type-casts for ckalloc() calls. Makes C++ compilers even ↵jan.nijtmans2020-03-171-3/+3
| | | | | | | | more happy. Mainly for MacOS code.
* | Fix many warnings in MacOSX build (caused by -Wextra -Wc++-compat). All ↵jan.nijtmans2020-03-011-0/+7
| | | | | | | | harmless. Not finished yet.
* | Make MacOSX aqua and X11 share the same X11 stub table.jan.nijtmans2019-09-251-20/+2
| |
* | Add XPutImage() to X11 stub table for MacOSX (aqua), enabling its use for ↵jan.nijtmans2019-08-231-0/+16
| | | | | | | | extensions.
* | Source readability run: macosx/*dkf2019-04-161-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