diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-23 14:09:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-24 12:00:07 +0100 |
commit | 88c0e46e139fe44f7f2a6f9fbaa6b3fd7a827a8d (patch) | |
tree | f41e0a3e856a8dd9dba6bbac7d08e62518b53420 /vcl/workben | |
parent | 17aea7c41c95186c03c173a8c6f26cd2ebce4c54 (diff) |
custom literal for Degree10
Change-Id: Id13869138a622e62d9ffebf2c89bddccda6aff01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108238
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/svptest.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index 18192be64ed8..cc936cc44f58 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -264,7 +264,7 @@ void MyWin::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rR Color const aDarkGreen(0, 0x40, 0); Gradient aGradient(GradientStyle::Linear, aBlack, aWhite); - aGradient.SetAngle(Degree10(900)); + aGradient.SetAngle(900_deg10); rRenderContext.DrawGradient(tools::Rectangle(Point(1000, 4500), Size(aPaperSize.Width() - 2000, 500)), aGradient); diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index d0a0aafdf7ea..9b6b719192a6 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -463,7 +463,7 @@ public: aFontRect.AdjustTop(nHeight/2 ); aFontRect.AdjustBottom(nHeight ); - aFont.SetOrientation(Degree10(450)); // 45 degrees + aFont.SetOrientation(450_deg10); // 45 degrees rDev.SetFont(aFont); rDev.DrawText(aFontRect, aText); @@ -679,7 +679,7 @@ public: case 2: { tools::Polygon aPoly(aSub); - aPoly.Rotate(aSub.Center(), Degree10(450)); + aPoly.Rotate(aSub.Center(), 450_deg10); aPoly.Clip(aSmaller); aRegion = vcl::Region(aPoly); break; @@ -1035,7 +1035,7 @@ public: case 3: case 0: // 45degree rectangle. aPoly = tools::Polygon(aPieces[i]); - aPoly.Rotate(aPieces[i].Center(), Degree10(450)); + aPoly.Rotate(aPieces[i].Center(), 450_deg10); break; case 1: // arc aPoly = tools::Polygon(aPieces[i], @@ -1046,7 +1046,7 @@ public: aPoly = tools::Polygon(aPieces[i], aPieces[i].GetWidth()/5, aPieces[i].GetHeight()/5); - aPoly.Rotate(aPieces[i].Center(), Degree10(450)); + aPoly.Rotate(aPieces[i].Center(), 450_deg10); break; } aClipRegion = vcl::Region(aPoly); |