mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 05:49:23 +02:00
MG: fixed right margin on non text area
git-svn-id: trunk@2125 -
This commit is contained in:
parent
dd3f6b64ef
commit
1f576f48df
@ -3055,13 +3055,16 @@ begin
|
|||||||
if (rcToken.Top < rcToken.Bottom) then begin
|
if (rcToken.Top < rcToken.Bottom) then begin
|
||||||
SetBkColor(dc, ColorToRGB(colEditorBG));
|
SetBkColor(dc, ColorToRGB(colEditorBG));
|
||||||
InternalFillRect(dc, rcToken);
|
InternalFillRect(dc, rcToken);
|
||||||
{$IFNDEF SYN_LAZARUS}
|
|
||||||
// Draw the right edge if necessary.
|
// Draw the right edge if necessary.
|
||||||
if bDoRightEdge and (not (eoHideRightMargin in Options)) then begin
|
if bDoRightEdge and (not (eoHideRightMargin in Options)) then begin
|
||||||
|
{$IFDEF SYN_LAZARUS}
|
||||||
|
LCLLinux.MoveToEx(dc, nRightEdge, rcToken.Top, nil);
|
||||||
|
LCLLinux.LineTo(dc, nRightEdge, rcToken.Bottom + 1);
|
||||||
|
{$ELSE}
|
||||||
Windows.MoveToEx(dc, nRightEdge, rcToken.Top, nil);
|
Windows.MoveToEx(dc, nRightEdge, rcToken.Top, nil);
|
||||||
Windows.LineTo(dc, nRightEdge, rcToken.Bottom + 1);
|
Windows.LineTo(dc, nRightEdge, rcToken.Bottom + 1);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF SYN_LAZARUS}
|
{$IFDEF SYN_LAZARUS}
|
||||||
|
Loading…
Reference in New Issue
Block a user