summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2016-07-26 14:01:25 (GMT)
committerdgp <dgp@noemail.net>2016-07-26 14:01:25 (GMT)
commit580a1394c0fa9bda104f2226cf9fa2e1ef017b7c (patch)
tree9d28a785329a0004dfeb4e4c6104021607591ebc /generic
parent1e43be5dc333602a81c42e8888175b5c155a4378 (diff)
parent0d80aec0c7c83b64b85e79d99f7c74408fbb4906 (diff)
downloadtk-580a1394c0fa9bda104f2226cf9fa2e1ef017b7c.zip
tk-580a1394c0fa9bda104f2226cf9fa2e1ef017b7c.tar.gz
tk-580a1394c0fa9bda104f2226cf9fa2e1ef017b7c.tar.bz2
merge 8.6core-8-6-6
FossilOrigin-Name: baf296948f6da419f53f6d35d76fd8b6bdff2d26
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 81bce94..a135084 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -2464,7 +2464,13 @@ DisplayDLine(
Tk_Width(textPtr->tkwin), dlPtr->height, 0, TK_RELIEF_FLAT);
/*
- * Second, draw the background color of the left and right margins.
+ * Second, draw background information for the whole line.
+ */
+
+ DisplayLineBackground(textPtr, dlPtr, prevPtr, pixmap);
+
+ /*
+ * Third, draw the background color of the left and right margins.
*/
if (dlPtr->lMarginColor != NULL) {
Tk_Fill3DRectangle(textPtr->tkwin, pixmap, dlPtr->lMarginColor, 0, y,
@@ -2478,12 +2484,6 @@ DisplayDLine(
}
/*
- * Next, draw background information for the whole line.
- */
-
- DisplayLineBackground(textPtr, dlPtr, prevPtr, pixmap);
-
- /*
* Make another pass through all of the chunks to redraw the insertion
* cursor, if it is visible on this line. Must do it here rather than in
* the foreground pass below because otherwise a wide insertion cursor