LCL, postscriptcanvas: fix landscape and reverse landscape orientation, from Percy Van Den bylaardt, issue #27048

git-svn-id: trunk@46926 -
This commit is contained in:
jesus 2014-11-21 01:42:21 +00:00
parent 5e600cad63
commit c6c954a140

View File

@ -710,15 +710,16 @@ begin
Write(format('%d %d translate 180 rotate',[w,h]));
end;
poLandscape:
begin
h:=round(PaperWidth*72/XDPI);
Write(format('0 %d translate 90 neg rotate',[h]));
end;
poReverseLandscape:
begin
h:=round(PaperHeight*72/YDPI);
Write(format('%d 0 translate 90 rotate',[h]));
end;
begin
h:=round(PaperHeight*72/YDPI);
Write(format('%d 0 translate 90 rotate',[h]));
end;
poReverseLandscape:
begin
w:=round((PaperWidth-PaperHeight)*72/XDPI);
h:=round(PaperHeight*72/XDPI);
Write(format('%d %d translate 90 neg rotate',[w,h]));
end;
end;
end;