diff options
author | Srijan Bhatia <srijanbhatiasun@gmail.com> | 2020-08-04 13:43:21 +0530 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-08-08 07:55:34 +0200 |
commit | d04260e5318fad36b3a29deaf9a823052bc6bea9 (patch) | |
tree | e3dcfe22daa94de870eb1d2fd055fc45387edc3c /sdext | |
parent | 7657fecbceb656d7745a0ae7674a733c722343d8 (diff) |
Presenter console new vertical separator
Change-Id: I82e30a8dd73ba91605ae839847fb6378b1d54b3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100044
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index ad0f36707c11..d36f42277da4 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -1953,7 +1953,7 @@ void VerticalSeparator::Paint ( awt::Rectangle aBBox (GetBoundingBox()); rendering::RenderState aRenderState( - geometry::AffineMatrix2D(1,0,0, 0,1,0), + geometry::AffineMatrix2D(1,0,aBBox.X, 0,1,aBBox.Y), nullptr, Sequence<double>(4), rendering::CompositeOperation::OVER); @@ -1964,8 +1964,12 @@ void VerticalSeparator::Paint ( PresenterCanvasHelper::SetDeviceColor(aRenderState, pFont->mnColor); } - rxCanvas->fillPolyPolygon( - PresenterGeometryHelper::CreatePolygon(aBBox, rxCanvas->getDevice()), + Reference<rendering::XBitmap> xBitmap(mpToolBar->GetPresenterController()->GetPresenterHelper()->loadBitmap("bitmaps/Separator.png", rxCanvas)); + if (!xBitmap.is()) + return; + + rxCanvas->drawBitmap( + xBitmap, rViewState, aRenderState); } |