summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-10-17 20:19:16 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-10-17 20:19:16 (GMT)
commitc650f722da03d87c52824306cefeb20c03ebb8b4 (patch)
treea3a2a874bf4c1be2caf0b90ac2f551f870cb8d6a /unix
parentf451994afc3dc024b32cd6f6148473b0abe78f89 (diff)
downloadtk-c650f722da03d87c52824306cefeb20c03ebb8b4.zip
tk-c650f722da03d87c52824306cefeb20c03ebb8b4.tar.gz
tk-c650f722da03d87c52824306cefeb20c03ebb8b4.tar.bz2
Add comments clarifying otherwise tacit assumptions.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixScrlbr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/tkUnixScrlbr.c b/unix/tkUnixScrlbr.c
index 0507211..2446c3f 100644
--- a/unix/tkUnixScrlbr.c
+++ b/unix/tkUnixScrlbr.c
@@ -289,6 +289,11 @@ TkpComputeScrollbarGeometry(
scrollPtr->inset = scrollPtr->highlightWidth + scrollPtr->borderWidth;
width = (scrollPtr->vertical) ? Tk_Width(scrollPtr->tkwin)
: Tk_Height(scrollPtr->tkwin);
+
+ /*
+ * Next line assumes that the arrow area is a square.
+ */
+
scrollPtr->arrowLength = width - 2*scrollPtr->inset + 1;
fieldLength = (scrollPtr->vertical ? Tk_Height(scrollPtr->tkwin)
: Tk_Width(scrollPtr->tkwin))