Skip to content
Snippets Groups Projects
Commit 58064722 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'SlyEdit_DCT_quote_win_bottom_border_fix' into 'master'

SlyEdit DCT: Fix so that the quote window bottom border is drawn the full width, not 2 characters short (not sure why this started happening)

See merge request !416
parents 9544a3c6 a83331cf
No related branches found
No related tags found
1 merge request!416SlyEdit DCT: Fix so that the quote window bottom border is drawn the full width, not 2 characters short (not sure why this started happening)
......@@ -512,14 +512,14 @@ function DrawQuoteWindowBottomBorder_DCTStyle(pEditLeft, pEditRight)
// Start creating DrawQuoteWindowBottomBorder_DCTStyle.border with the
// bottom border lines, up until helpTextStartX.
DrawQuoteWindowBottomBorder_DCTStyle.border = gConfigSettings.DCTColors.QuoteWinBorderColor
+ LOWER_LEFT_SINGLE;
DrawQuoteWindowBottomBorder_DCTStyle.border = gConfigSettings.DCTColors.QuoteWinBorderColor + LOWER_LEFT_SINGLE;
for (var XPos = pEditLeft+2; XPos < helpTextStartX; ++XPos)
DrawQuoteWindowBottomBorder_DCTStyle.border += HORIZONTAL_SINGLE;
// Add the help text, then display the rest of the bottom border characters.
DrawQuoteWindowBottomBorder_DCTStyle.border += quoteHelpText
+ gConfigSettings.DCTColors.QuoteWinBorderColor;
for (var XPos = helpTextStartX + helpTextLen; XPos <= pEditRight-2; ++XPos)
DrawQuoteWindowBottomBorder_DCTStyle.border += quoteHelpText + gConfigSettings.DCTColors.QuoteWinBorderColor;
// Previously, the rightmost column in this loop was pEditRight-2, but now it looks like that was resulting
// in this line being 2 characters shorter than it should be.
for (var XPos = helpTextStartX + helpTextLen; XPos <= pEditRight; ++XPos)
DrawQuoteWindowBottomBorder_DCTStyle.border += HORIZONTAL_SINGLE;
DrawQuoteWindowBottomBorder_DCTStyle.border += LOWER_RIGHT_SINGLE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment