mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:00:24 +02:00
postcript fixes for fpc 1.0.10 from Olivier
git-svn-id: trunk@6116 -
This commit is contained in:
parent
ce54817546
commit
6d35eda3fe
@ -1402,6 +1402,12 @@ begin
|
||||
ImgWidth:=SrcGraphic.Width;
|
||||
ImgHeight:=SrcGraphic.Height;
|
||||
|
||||
//if not FPImage then draw ab Rectangle because other wise PostScript
|
||||
//interpreter wait infinite some RGB datas
|
||||
{$ifndef DisableFPImage}
|
||||
//if not FPImage then draw ab Rectangle because other wise PostScript
|
||||
//interpreter wait infinite some RGB datas
|
||||
{$ifndef DisableFPImage}
|
||||
DrawWidth:=X1-X;
|
||||
DrawHeight:=Y-Y1;
|
||||
ClearBuffer;
|
||||
@ -1417,9 +1423,25 @@ begin
|
||||
|
||||
GetRGBImage(SrcGraphic,fBuffer);
|
||||
WriteB('% end of image data');
|
||||
{$else}
|
||||
WriteB('newpath');
|
||||
writeB(Format(' %d %d moveto',[X1,Y1]));
|
||||
writeB(Format(' %d %d lineto',[X2,Y1]));
|
||||
writeB(Format(' %d %d lineto',[X2,Y2]));
|
||||
writeB(Format(' %d %d lineto',[X1,Y2]));
|
||||
writeB('closepath');
|
||||
{$endif}
|
||||
WriteB('grestore');
|
||||
|
||||
Write(fBuffer);
|
||||
{$else}
|
||||
WriteB('newpath');
|
||||
writeB(Format(' %d %d moveto',[X1,Y1]));
|
||||
writeB(Format(' %d %d lineto',[X2,Y1]));
|
||||
writeB(Format(' %d %d lineto',[X2,Y2]));
|
||||
writeB(Format(' %d %d lineto',[X1,Y2]));
|
||||
writeB('closepath');
|
||||
{$endif}
|
||||
|
||||
Changed;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user