summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate empty if() statement, if DEBUG_LAYOUT_WITH_BASE_CHUNKS is not ↵jan.nijtmans2017-05-191-2/+2
| | | | defined. (backported from androwish. Thanks, Christian!)
* Revert [f38091d0]: If TK_LAYOUT_WITH_BASE_CHUNKS is set (MacOSX), this ↵jan.nijtmans2017-05-121-1/+1
| | | | change leads to crash, struct CharInfo is defined differently depending on TK_LAYOUT_WITH_BASE_CHUNKS (however strange that is ...)
* Don't use sizeof(struct) when the structure has a char array as last ↵jan.nijtmans2017-05-081-1/+1
| | | | element: If the size of this array changes, we'll be in trouble.
* Merge core-8-6-branchfvogel2017-01-291-6/+6
|\
| * Fix [fab5fed65e]: OS X - lots of textDisp failures (spurious 'borders' and ↵fvogel2017-01-181-1/+2
| |\ | | | | | | | | | indices in tk_textRedraw).
| | * Remove obsolete comments. The line they comment was kicked out of the code ↵bug_fab5fed65efvogel2017-01-151-1/+2
| | | | | | | | | | | | | | | | | | | | | in [946e946700]. Also, add a small optimization to avoid double invalidation of the damaged region. Indeed the detailed analysis of ticket [fab5fed65e] showed that on OS X the damaged region is invalidated twice: - once through the processing of the Expose event (on OS X the Appkit is not used to draw the widget, Tk is used instead, see comments in tkMacOSXWindowEvent.c around line 770) - a second time because DisplayText() calls TextInvalidateRegion() after TkScrollWindow()
| * | Change more refCount checks to the form "(...refCount-- <= 1)", so no ↵jan.nijtmans2017-01-181-5/+4
| |/ | | | | | | separate decrement and compare is necessary. This allows (in the future) the same code to work when refCount becomes unsigned (which at least doubles the range). No functional change.
* | Merge core-8-6-branchfvogel2017-01-071-1/+1
|\ \ | |/
| * Reverted [7ed6460f] since it fixes an issue unrelated to the bug presented ↵bug_3df559ef7cfvogel2017-01-071-1/+1
| | | | | | | | in [3df559ef7c] - Negative bbox width on OS X.
| * Do everything the other way round. Leave things how they were on OS X ↵fvogel2016-12-301-3/+7
| | | | | | | | (revert [a076cf64] and [42e0339e]), and fix TkpDrawCharsInContext() on Win and Linux in case these platforms at some point of time decide to define TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT to true
| * On Windows with TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT being both ↵fvogel2016-12-231-7/+3
| | | | | | | | defined for testing purposes, rendering of the text was incorrect because some chunks were superimposed (this was only a display issue, x and width of all chunks were already correct). Fix this.
| * On Windows with TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT being both ↵fvogel2016-12-231-1/+1
| | | | | | | | defined for testing purposes, four tests (textDisp-18.6, 20.2, 20.3 and 20.4) were failing. Fix this.
| * Fix [3df559ef7c] - Negative bbox width on OS X. Tested OK on Windows with ↵fvogel2016-12-231-1/+1
| | | | | | | | TK_LAYOUT_WITH_BASE_CHUNKS being defined.
* | Fix [ae32eb7e10]: Win + specific text widget configuration : textDisp-18.6, ↵fvogel2017-01-071-1/+1
|/ | | | -20.2 -20.3 -20.4 fail
* Fixed [1082213fff] - word wrapping should trim excess spacesfvogel2016-10-091-0/+18
|\
| * Added explanatory commentfvogel2016-09-301-0/+3
| |
| * Explained why only spaces are trimmed and not tabsfvogel2016-09-291-0/+3
| |
| * Slightly better fixfvogel2016-09-281-11/+11
| |
| * Fixed [1082213fff] - word wrapping should trim excess spacesfvogel2016-09-281-0/+12
| |
* | Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-2/+2
|\ \ | |/ |/| | | places where Unicode surrogate handling could be improved.
| * More simplificationsjan.nijtmans2016-09-191-1/+1
| |
| * Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-2/+2
| | | | | | | | needing less #ifdef's
| * [5660d11c3f] Fix new -lmargincolordgp2016-07-281-7/+7
| |\ | |/ |/|
| * Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-05-011-13/+4
| |\ | | | | | | | | | unsafe
| * | Merged tip-443 following acceptation of the TIP by TCT vote (cherrypicked ↵fvogel2016-03-201-6/+100
| | | | | | | | | | | | [cb3354b298])
| * | Eliminate use of Tcl_SetResult(), and CONST -> constjan.nijtmans2016-03-151-2/+2
| | |
* | | Fixed [5660d11c3f] - text tag -background option overrules -lmargincolorfvogel2016-07-261-7/+7
| |/ |/|
* | Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-04-211-13/+4
| | | | | | | | unsafe
* | Backed out anything dealing with stippling, in accordance with discussion ↵fvogel2016-03-081-16/+4
| | | | | | | | about TIP #443
* | trunk merged to branch tip-443fvogel2016-03-011-1/+1
|\ \ | |/
| * Fixed error in commentfvogel2016-02-111-1/+1
| |
* | -lmargincolor tag configuration option: implementation slightly optimized ↵fvogel2016-02-111-3/+2
| | | | | | | | since Tk_Fill3DRectangle is robust with respect to negative widths
* | -rmargincolor tag configuration option: implementationfvogel2016-02-101-4/+25
| |
* | -lmargincolor tag configuration option: implementationfvogel2016-02-101-0/+26
| |
* | -overstrikefg tag configuration option: implementationfvogel2016-02-091-3/+17
| |
* | -underlinefg tag configuration option: implementationfvogel2016-02-091-2/+17
| |
* | -selectfgstipple tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectbgstipple tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectforeground tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectbackground tag configuration option: implementationfvogel2016-02-091-0/+13
|/
* Fixed (with a real fix this time) bug [06c1433906] - Text widget crash ↵fvogel2016-02-081-16/+41
|\ | | | | | | during delete
| * With the real fix in FindDLine ([717e12ee]) there is no need anymore of the ↵finddlinefvogel2016-02-081-3/+0
| | | | | | | | emergency patch [c3c09f82].
| * Made FindDLine fully match its header description.fvogel2016-02-081-3/+30
| |
| * More comments in FindDLine, with slightly optimized code to achieve the same ↵fvogel2016-02-081-3/+11
| | | | | | | | functionality.
| * Reverted [311ef109] and [1847c858] because they are no longer needed to fix ↵fvogel2016-02-081-8/+1
| | | | | | | | bug [2f78c7c5ea]. The corresponding test textDisp-9.14 still passes.
* | Corrected indentation + added an explanatory comment.fvogel2016-02-081-1/+4
| |
* | Fix [06c14339060ba9ae]: Text widget crash during delete. Thanks to François ↵jan.nijtmans2016-02-081-5/+3
|\ \ | |/ | | | | Vogel for the implementation and Brian Griffin for all his help getting this figured out.
| * while is better than if because it deals with wrapped lines then.fvogel2016-02-071-1/+1
| |
| * Hopefully a better fix for [06c1433906] - Text widget crashfvogel2016-02-071-5/+3
| |
| * [06c1433906] Possible fix for text widget crashes.dgp2016-02-041-0/+5
| |