mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-05 18:19:28 +01:00
LCL: remove obsolete and WRONG cBrushStyle array. Items were in wrong order
git-svn-id: trunk@33235 -
This commit is contained in:
parent
bd2c6d9b5c
commit
ef93f8effc
@ -205,12 +205,6 @@ Type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
Const
|
Const
|
||||||
cBrushStyle : Array[TBrushStyle] of String =
|
|
||||||
('bsClear', 'bsSolid', 'bsBDiagonal',
|
|
||||||
'bsFDiagonal', 'bsCross', 'bsDiagCross',
|
|
||||||
'bsHorizontal', 'bsVertical', 'bsImage', 'bsPattern');
|
|
||||||
|
|
||||||
|
|
||||||
cFontPSMetrics : Array[0..12] of TFontPSMetrics =(
|
cFontPSMetrics : Array[0..12] of TFontPSMetrics =(
|
||||||
(Name : 'Courier';
|
(Name : 'Courier';
|
||||||
ULPos : -100; ULThickness : 50; Ascender : 604; Descender : -186;
|
ULPos : -100; ULThickness : 50; Ascender : 604; Descender : -186;
|
||||||
@ -920,6 +914,8 @@ end;
|
|||||||
//Use SetBorder and SetFill for initialize 1 or 2 sequence
|
//Use SetBorder and SetFill for initialize 1 or 2 sequence
|
||||||
procedure TPostScriptPrinterCanvas.SetBrushFillPattern(Lst: TStringList;
|
procedure TPostScriptPrinterCanvas.SetBrushFillPattern(Lst: TStringList;
|
||||||
SetBorder, SetFill: Boolean);
|
SetBorder, SetFill: Boolean);
|
||||||
|
var
|
||||||
|
s: string;
|
||||||
begin
|
begin
|
||||||
If not Assigned(Lst) then Exit;
|
If not Assigned(Lst) then Exit;
|
||||||
|
|
||||||
@ -938,7 +934,8 @@ begin
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
UpdateLineColor(Brush.Color);
|
UpdateLineColor(Brush.Color);
|
||||||
write(Format('/%s findfont %% a pattern font patternfill',[cBrushStyle[Brush.Style]]));
|
WriteStr(s, Brush.Style);
|
||||||
|
write(Format('/%s findfont %% a pattern font patternfill',[s]));
|
||||||
Write(Lst);
|
Write(Lst);
|
||||||
write('patternfill');
|
write('patternfill');
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user