summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2020-02-061-3/+3
|\
* | WIP: Add support for C++jan.nijtmans2019-12-121-3/+155
|/
* Add a bunch of new X11 functions (stubs, for now) to the X11 stub tables for ↵jan.nijtmans2019-10-021-0/+86
| | | | win and MacOS. Those will be needed when implementing XIM support for Windows/MacOSX.
* Eliminate some dead codejan.nijtmans2019-10-011-18/+0
|
* Fix MacOS buildjan.nijtmans2019-10-011-2/+0
|
* more Region-related revamp.jan.nijtmans2019-10-011-4/+6
|
* Simplify many MacOS-specific types which are not necessaryjan.nijtmans2019-09-301-12/+1
|
* Merge trunk. Some more signature changes, in line with X11-R6jan.nijtmans2019-08-221-3/+6
|\
* | Further experimenting, seems to work on MacOSXjan.nijtmans2019-08-141-16/+32
| |
* | Experiment: Upgrade X11 header files from X11 R5 to X11 R6. This opens the ↵jan.nijtmans2019-08-141-5/+88
|/ | | | way to implement more (e.g. XIM support) for Win32 and MacOSX.
* Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-2/+2
|\
| * Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-2/+2
| |
* | Merge 8.6jan.nijtmans2019-01-101-5/+5
|\ \ | |/
| *-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-12/+12
| |\ \
| | | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-5/+5
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
| * | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-11/+11
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/| *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-11/+11
| | |/ | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | Header include reform: Since "tkInt.h" already contains header files like ↵jan.nijtmans2018-09-061-1/+1
|/ / | | | | | | | | <stdlib.h>, <string.h> and <ctype.h>, we don't have to include those in every separate C-file. Just depend on tkInt.h to provide it. This mainly affects ttk, since most other files already adhered to this.
* | Let the unimplemented function XDrawSegments() return BadDrawable in stead ↵jan.nijtmans2017-04-251-1/+1
| | | | | | | | of Success: It's only in the stub table since [a0883a07026127ef], before that the function was only internal and returned void.
* | (micro-) optimize a few Win32 drawing functions, and make them work when ↵jan.nijtmans2016-11-081-6/+7
|\ \ | |/ | | | | npoints=0
| * Add XDrawSegments/XDrawPoint/XDrawPoints to internal stub table, and fix ↵jan.nijtmans2016-11-081-8/+12
| | | | | | | | their signature matching X11.
| * sync nmakehlp.c with Tcl versionjan.nijtmans2012-10-231-2/+2
| |\ | | | | | | | | | <p>purge spaces at end of lines <p>clean-up unix/Makefile.in after carbon removal
* | | Add another few Xlib stubs for Win32. Cherry-picked from ↵jan.nijtmans2016-11-071-6/+9
| | | | | | | | | | | | [http://www.androwish.org/index.html/info/862eb620a096fddc|AndroWish]. Thanks to Christian Werner.
* | | consistant use of mode: objc for OSX, strip spaces from the end of linesjan.nijtmans2012-10-231-2/+2
|\ \ \ | |/ /
| * | Merge Tk-Cocoa backport into core-8-5-branchKevin Walzer2012-09-251-4/+34
| |\ \
| | * | review remarks, see mail.jan.nijtmans2012-09-121-2/+0
| | | |
| | * | Review branch for merge of Tk-Cocoa into Tk 8.5 main branchKevin Walzer2012-09-121-4/+36
| | | |
* | | | [Bug 3567453]: Clip regions must be cleared with XSetClipMask and notdkf2012-09-131-1/+1
|\ \ \ \ | |/ / / | | | | TkSetRegion on X11.
| * | | [Bug 3567453]: Clip regions must be cleared with XSetClipMask and notdkf2012-09-131-1/+1
| |/ / | | | | | | TkSetRegion on X11.
* | | Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-081-17/+33
|\ \ \ | |/ / | | | | | | needed for Cygwin
| * | Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-071-14/+28
| |\ \ | | |/ | | | | | | needed for Cygwin
| | * merge core-8-4-branchjan.nijtmans2012-06-051-22/+22
| | |\
| | * | change signature of all X11 functions to match those of CYGWINjan.nijtmans2012-05-021-15/+30
| | | |
| * | | Change XSetDashes signature and many others to match Xorg, needed for Cygwinjan.nijtmans2012-06-051-3/+5
| |\ \ \ | | | |/ | | |/|
| | * | Change XSetDashes signature and many others to match Xorg, needed for Cygwin. jan.nijtmans2012-06-011-10/+11
| | |/ | | | | | | Add .PHONY targets, and various quoting issues (Makefile.in)
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * Backport from HEAD of Aqua changes from 2007-10-12 to 2007-11-09das2007-11-091-38/+83
| | |
| | * typodas2007-07-021-2/+2
| | |
| | * * xlib/xgc.c (XCreateGC): correct black and white pixel values used todas2007-07-021-3/+5
| | | | | | | | | | | | initialize GC foregrund and background fields.
| | * * macosx/tkMacOSXMenu.c (DrawMenuSeparator): use DrawingContext API.das2007-05-301-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXWindowEvent.c (ClearPort): clip to updateRgn. * macosx/tkMacOSXDebug.c: factor out debug region flashing. * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXEvent.c: cleanup whitespace and formatting. * macosx/tkMacOSXFont.c: * macosx/tkMacOSXRegion.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * xlib/xgc.c:
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tcl/unix/configure.in. * unix/Makefile.in: add CFLAGS to wish/tktest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of wish and compiling of tkTestInit.o during parallel make, fix dependencies and flags for building tkMacOSXInit.o (checkstubs, checkexports): dependency and Darwin fixes * macosx/tkMacOSXEvent.c (TkMacOSXProcessEvent): * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): * macosx/tkMacOSXCarbonEvents.c: install standard application event handler, add & call functions to start and stop carbon even timer that runs the tcl event loop periodically during a nested carbon event loop in the toolbox (e.g. during menutracking) to ensure tcl timers etc continue to fire, register app event handler for menu tracking and HI command carbon events, move menu event handling to new handlers for those carbon events, no longer register for/handle appleevent carbon event (now dealt with by standard application event handler), event debugging code dynamically acquires carbon event debugging functions to allow use on Tiger where they are no longer exported from HIToolbox. * macosx/tkMacOSXFont.c (TkMacOSXUseAntialiasedText): * macosx/tkMacOSXKeyEvent.c (GetKeyboardLayout): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: abstract common code to dynamically acquire address of a named symbol (from a loaded dynamic library) into new function TkMacOSXGetNamedSymbol() and macro TkMacOSXInitNamedSymbol. * macosx/tkMacOSXMenu.c (TkpNewMenu): * macosx/tkMacOSXMenubutton.c (MenuButtonInitControl): * macosx/tkMacOSXMenus.c (TkMacOSXHandleMenuSelect): switch to modern utf8 aware menu manager API, remove obsolete code, add error handling. * macosx/tkMacOSXMouseEvent.c: define OSX 10.3 or later only constants if necessary to allow compilation on OSX 10.2 * macosx/tkMacOSXWm.c (UpdateSizeHints): remove code that is never executed. * generic/tk.h: add/correct location of version numbers in macosx files. * generic/tkInt.h: clarify fat compile comment. * macosx/Wish.pbproj/default.pbxuser (new file): * macosx/Wish.pbproj/jingham.pbxuser: * macosx/Wish.pbproj/project.pbxproj: sync with HEAD. * macosx/buildTkConfig.tcl (removed): remove obsolete build files. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. ppc and i386 at the same time). * macosx/Makefile: add support for reusing configure cache, build target fixes. * generic/tkMenu.c: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXSubwindows.c: * xlib/xgc.c: declare functions and globals used only in own file as static, #ifdef out a few Xlib and aqua functions that are never called (sync with HEAD). * macosx/tkMacOSXPort.h: * generic/tkInt.decls: correct signature of TkMacOSXHandleMenuSelect, add XSync to aqua Xlib stubs. * generic/tkTest.c: #ifdef unix only declarations. (TestmetricsCmd): unify win and mac implementation. * generic/tkTextDisp.c: * generic/tkTextBTree.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXXStubs.c: fix gcc 4 warnings. * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXTest.c: sync with HEAD. * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkStubInit.c: * unix/configure: regen.
| | * Set the default linewidth for new gc's to 1 not 0. Some extensions seemwolfsuit2005-03-251-2/+2
| | | | | | | | | | | | to rely on this.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-5/+4
| | | | | | | | | using useful casts internally.
* | | tkPort.h already includes tk.h, which includes tcl.hnijtmans2010-04-201-2/+2
| | | | | | | | | | | | Always use #include "tkInt.h", not <tkInt.h>
* | | Merge of TkAqua Cocoa portmacosx_cocoa_mergedas2009-06-291-5/+35
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * macosx/tkMacOSXButton.c: sync formatting, whitespace, copyrightdas2007-11-091-1/+2
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDialog.c: with core-8-4-branch. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXWm.c: * xlib/xgc.c * library/bgerror.tcl: * library/console.tcl: * library/menu.tcl: