mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +02:00
IDE: source marks: fix scaling.
git-svn-id: trunk@57209 -
This commit is contained in:
parent
f6ea54d3f6
commit
5bc548965e
@ -233,7 +233,7 @@ type
|
||||
procedure GetMarksForLine(ASrcEdit: TSourceEditorBase; ALine: integer;
|
||||
out Marks: PSourceMark; out MarkCount: integer);
|
||||
public
|
||||
property ImgList: TImageList read FImgList write FImgList;
|
||||
property ImgList: TImageList read FImgList;
|
||||
property Items[Index: integer]: TSourceMark read GetItems; default;
|
||||
property OnAction: TMarksActionEvent read FOnAction write FOnAction;
|
||||
property ExtToolsMarks: TETMarks read FExtToolsMarks;
|
||||
@ -550,7 +550,7 @@ var
|
||||
ImgListSize: Integer;
|
||||
begin
|
||||
// create default mark icons
|
||||
ImgList:=TImageList.Create(Self);
|
||||
FImgList:=TImageList.Create(Self);
|
||||
ImgListSize := TIDEImages.ScaledSize(11);
|
||||
ImgList.Width := ImgListSize;
|
||||
ImgList.Height := ImgListSize;
|
||||
@ -817,7 +817,7 @@ end;
|
||||
|
||||
function TSourceMarks.AddImage(const ResName: string): integer;
|
||||
begin
|
||||
Result := TIDEImages.AddImageToImageList(ImgList, Resname);
|
||||
Result := TIDEImages.AddImageToImageList(ImgList, Resname, 11);
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user