summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2016-07-28 12:46:03 (GMT)
committerdgp <dgp@noemail.net>2016-07-28 12:46:03 (GMT)
commita5b5ec4528c24c3240575e4f067f63c871b613c0 (patch)
treee37e643a549b285dc06606fb7539dbd364de1418
parentdb9e27bffe93a45edc11e5a03b749a3676fcc0b0 (diff)
parent0d80aec0c7c83b64b85e79d99f7c74408fbb4906 (diff)
downloadtk-a5b5ec4528c24c3240575e4f067f63c871b613c0.zip
tk-a5b5ec4528c24c3240575e4f067f63c871b613c0.tar.gz
tk-a5b5ec4528c24c3240575e4f067f63c871b613c0.tar.bz2
[5660d11c3f] Fix new -lmargincolor
FossilOrigin-Name: 18cdcb0b1eb07403882c760d5ca3f8b905473136
-rw-r--r--generic/tkTextDisp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 92c60f3..5faab36 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