mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 02:19:57 +02:00
IDE: SourceEditor: IDESynGutterMarks High-DPI aware.
git-svn-id: trunk@55775 -
This commit is contained in:
parent
53e535b678
commit
6a4cf08b92
@ -414,6 +414,7 @@ type
|
||||
protected
|
||||
procedure CheckTextBuffer; // Todo: Add a notification, when TextBuffer Changes
|
||||
Procedure PaintLine(aScreenLine: Integer; Canvas : TCanvas; AClip : TRect); override;
|
||||
function PreferedWidth: Integer; override;
|
||||
public
|
||||
destructor Destroy; override;
|
||||
procedure BeginSetDebugMarks;
|
||||
@ -2223,6 +2224,14 @@ begin
|
||||
DrawDebugMark(aScreenLine);
|
||||
end;
|
||||
|
||||
function TIDESynGutterMarks.PreferedWidth: Integer;
|
||||
begin
|
||||
if Assigned(SourceEditorMarks) and Assigned(SourceEditorMarks.ImgList) then
|
||||
Result := SourceEditorMarks.ImgList.Width * 2 + FBookMarkOpt.LeftMargin
|
||||
else
|
||||
Result := inherited PreferedWidth;
|
||||
end;
|
||||
|
||||
destructor TIDESynGutterMarks.Destroy;
|
||||
begin
|
||||
ClearDebugMarks;
|
||||
|
Loading…
Reference in New Issue
Block a user