postcript fixes for fpc 1.0.10 from Olivier

git-svn-id: trunk@6116 -
This commit is contained in:
mattias 2004-10-05 17:54:36 +00:00
parent ce54817546
commit 6d35eda3fe

View File

@ -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;