LazMapViewer: Fix positioning of rotated text in BGRABitmap drawer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9710 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
3a4e228b66
commit
ff2c7c5e7f
@ -485,8 +485,9 @@ begin
|
||||
dy := R.Height/2;
|
||||
ctr := PointF(X + dx, Y + dy);
|
||||
FBuffer.CanvasBGRA.PolygonF([Pts[0] + ctr, Pts[1] + ctr, Pts[2] + ctr, Pts[3] + ctr], False, True);
|
||||
FBuffer.FontVerticalAnchor := fvaXCenter;
|
||||
FBuffer.TextOut(ctr.X, ctr.Y, AText, FontColor, taCenter);
|
||||
FBuffer.FontVerticalAnchor := fvaCapLine; //fvaCenter;
|
||||
// FBuffer.TextOut(ctr.X, ctr.Y, AText, FontColor, taCenter);
|
||||
FBuffer.TextOut(ctr.x + Pts[0].X, ctr.Y + Pts[0].Y, AText, FontColor);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user