mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 07:38:30 +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
|
protected
|
||||||
procedure CheckTextBuffer; // Todo: Add a notification, when TextBuffer Changes
|
procedure CheckTextBuffer; // Todo: Add a notification, when TextBuffer Changes
|
||||||
Procedure PaintLine(aScreenLine: Integer; Canvas : TCanvas; AClip : TRect); override;
|
Procedure PaintLine(aScreenLine: Integer; Canvas : TCanvas; AClip : TRect); override;
|
||||||
|
function PreferedWidth: Integer; override;
|
||||||
public
|
public
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure BeginSetDebugMarks;
|
procedure BeginSetDebugMarks;
|
||||||
@ -2223,6 +2224,14 @@ begin
|
|||||||
DrawDebugMark(aScreenLine);
|
DrawDebugMark(aScreenLine);
|
||||||
end;
|
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;
|
destructor TIDESynGutterMarks.Destroy;
|
||||||
begin
|
begin
|
||||||
ClearDebugMarks;
|
ClearDebugMarks;
|
||||||
|
Loading…
Reference in New Issue
Block a user