summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-12 15:09:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-12 15:09:02 (GMT)
commit23718fff3fa4498a96ddba775e09ec032b64c6a1 (patch)
tree1f10636b6db460edde51cdeedce05d61cc290c89 /generic/tkTextDisp.c
parent96b66d43c7d89c8cff44d9768c2d57bd4b4a7cdf (diff)
parentf09480661f2d21a06fc4329c773d93124e674a7a (diff)
downloadtk-23718fff3fa4498a96ddba775e09ec032b64c6a1.zip
tk-23718fff3fa4498a96ddba775e09ec032b64c6a1.tar.gz
tk-23718fff3fa4498a96ddba775e09ec032b64c6a1.tar.bz2
Rebase to 8.7
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 651cb96..5bdbe3e 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -168,7 +168,7 @@ typedef struct StyleValues {
*/
typedef struct TextStyle {
- TkSizeT refCount; /* Number of times this structure is
+ Tcl_Size refCount; /* Number of times this structure is
* referenced in Chunks. */
GC bgGC; /* Graphics context for background. None means
* use widget background. */
@@ -415,7 +415,7 @@ typedef struct TextDInfo {
* to so far... */
int metricPixelHeight; /* ...and this is for the height calculation
* so far...*/
- TkSizeT metricEpoch; /* ...and this for the epoch of the partial
+ Tcl_Size metricEpoch; /* ...and this for the epoch of the partial
* calculation so it can be cancelled if
* things change once more. This field will be
* -1 if there is no long-line calculation in
@@ -774,7 +774,7 @@ GetStyle(
StyleValues styleValues;
TextStyle *stylePtr;
Tcl_HashEntry *hPtr;
- TkSizeT numTags, i;
+ Tcl_Size numTags, i;
int isNew;
int isSelected;
XGCValues gcValues;
@@ -1178,7 +1178,7 @@ LayoutDLine(
/* Pointer to last chunk in display lines with
* numBytes > 0. Used to drop 0-sized chunks
* from the end of the line. */
- TkSizeT byteOffset;
+ Tcl_Size byteOffset;
int ascent, descent, code, elide, elidesize;
StyleValues *sValuePtr;
TkTextElideInfo info; /* Keep track of elide state. */
@@ -6178,7 +6178,7 @@ TkTextYviewCmd(
TextDInfo *dInfoPtr = textPtr->dInfoPtr;
int pickPlace, type;
int pixels, count;
- TkSizeT switchLength;
+ Tcl_Size switchLength;
double fraction;
TkTextIndex index;
@@ -7621,11 +7621,11 @@ TkTextCharLayoutProc(
TCL_UNUSED(TkTextIndex *), /* Index of first character to lay out
* (corresponds to segPtr and offset). */
TkTextSegment *segPtr, /* Segment being layed out. */
- TkSizeT byteOffset, /* Byte offset within segment of first
+ Tcl_Size byteOffset, /* Byte offset within segment of first
* character to consider. */
int maxX, /* Chunk must not occupy pixels at this
* position or higher. */
- TkSizeT maxBytes, /* Chunk must not include more than this many
+ Tcl_Size maxBytes, /* Chunk must not include more than this many
* characters. */
int noCharsYet, /* Non-zero means no characters have been
* assigned to this display line yet. */
@@ -7639,7 +7639,7 @@ TkTextCharLayoutProc(
{
Tk_Font tkfont;
int nextX, count;
- TkSizeT bytesThatFit;
+ Tcl_Size bytesThatFit;
CharInfo *ciPtr;
char *p;
TkTextSegment *nextPtr;