Simplify Sequences initializations (cppcanvas)
Change-Id: If2d882060422b4e450de9ddda28d8d5c624c8e24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116816 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
7d97813671
commit
46ea7c5d8b
2 changed files with 2 additions and 4 deletions
|
@ -278,8 +278,7 @@ namespace cppcanvas::internal
|
||||||
rendering::RenderState aLocalState( maState );
|
rendering::RenderState aLocalState( maState );
|
||||||
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
|
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
|
||||||
|
|
||||||
uno::Sequence< rendering::Texture > aSeq(1);
|
uno::Sequence< rendering::Texture > aSeq { maTexture };
|
||||||
aSeq[0] = maTexture;
|
|
||||||
|
|
||||||
rCachedPrimitive = mpCanvas->getUNOCanvas()->fillTexturedPolyPolygon( mxPolyPoly,
|
rCachedPrimitive = mpCanvas->getUNOCanvas()->fillTexturedPolyPolygon( mxPolyPoly,
|
||||||
mpCanvas->getViewState(),
|
mpCanvas->getViewState(),
|
||||||
|
|
|
@ -84,8 +84,7 @@ namespace cppcanvas::internal
|
||||||
}
|
}
|
||||||
|
|
||||||
rendering::RenderState aLocalState( getRenderState() );
|
rendering::RenderState aLocalState( getRenderState() );
|
||||||
uno::Sequence<rendering::ARGBColor> aCol(1);
|
uno::Sequence<rendering::ARGBColor> aCol { { nAlphaModulation, 1.0, 1.0, 1.0 } };
|
||||||
aCol[0] = rendering::ARGBColor( nAlphaModulation, 1.0, 1.0, 1.0 );
|
|
||||||
aLocalState.DeviceColor =
|
aLocalState.DeviceColor =
|
||||||
pCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(aCol);
|
pCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(aCol);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue