Age | Commit message (Collapse) | Author | Files | Lines |
|
Polygon is one of these names that Clash with some system objects
A similar work has been done earlier with PolyPolygon.
Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5
Reviewed-on: https://gerrit.libreoffice.org/17789
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
|
|
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec
Reviewed-on: https://gerrit.libreoffice.org/16712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
|
|
Let's not hide the assert() in a function whose sole purpose is to
call assert().
Change-Id: I7a8a04aad560b0f22398daabf12d00bbe58e89f1
|
|
Change-Id: I4fb8f2c9e2080e3aa542d2ccf838e6784baa8429
|
|
Change-Id: I8f698bbcf4d53a4477cc0ee0c3f2c7f08e521f8a
|
|
Change-Id: I5e05b08e30930740be0fdbb18169bf350e2eab9f
|
|
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
|
|
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
|
|
I'm somewhat confused by why there needs to be a separate line width
for X and Y, but apparently there is, and the latter shouldn't be just plain 0
(otherwise a number of drawPolyLine() implementations either skip using
a simpler path for the usual case of them being equal, or even plain to refuse
work at all and cause a fall back).
And I hope this doesn't lead to finding out that some of those implementation
are actually buggy.
Change-Id: I2dbbd1539c4a96d41935cce9ae6565872e2a459b
|
|
I asked on the LO dev mailing list what Evtl means and what is being
expanded, and Michael Stahl kindly responded:
> "Evtl" usually means German "eventuell" which means "possible" or
> "optional" (i.e. totally different meaning from English "eventual").
So in other words, it means paint using line geometry and optionally
expand. Or in other words, it just draws a line using a B2DPolyPolygon.
Thus, I have renamed it to drawLine(), which is a private function of
OutputDevice. I think this makes it somewhat clearer :-)
Change-Id: I7eec23c61eda9dc1074922f5f2f67eacbc7fd725
Reviewed-on: https://gerrit.libreoffice.org/12264
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
|
|
I've merged these two functions, I just added a new function parameter to switch on and off
the AA check, this function parameter defaults to false so DrawPolyLineDirect needs to do the
AA check each time. If bBypassAACheck is set to true, then we automatically enable AA.
Change-Id: Id2d9b2036a41716590f7b87f658f5bb210964392
Reviewed-on: https://gerrit.libreoffice.org/12191
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
|
|
I've renamed TryDrawPolyLineDirect() to DrawPolyLineDirect() and also
renamed TryDrawPolyLineDirectNoAACheck() to drawPolyLineDirectNoAACheck().
However, at the same time I feel that there is no need to call on
drawPolyLineDirectNoAACheck in most instances, because DrawPolyLineDirect
does an AA check before it can continue anyway. There is one instance where
constantly checking the AA check is inefficient because it's in a loop, in
that case then we call directly on drawPolyLineDirectNoAACheck, but this is
the only case it is necessary.
Change-Id: Ie0320bfc45b5c0e1ac6ce35912da3e2897af9429
Reviewed-on: https://gerrit.libreoffice.org/12190
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
|
|
Change-Id: I145ebcfb92fc75f4558d3bf090093aef9e848136
Reviewed-on: https://gerrit.libreoffice.org/12188
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
|
|
Change-Id: I7355db3294f5aaa3b4f4bac802ba064724ad2214
|
|
Change-Id: I01c0974d3a2f79cf3c6b9730ea306dcd49927a3c
|
|
Change-Id: I967a50cf4fdde87efbcec990eab4f68570f27b94
|
|
Change-Id: I3915cfabb9568480d74ea6d4e459def6fe912eb9
|
|
Change-Id: If8d18b59285f75d61d9972ca019390fce700be3c
|
|
Change-Id: I2439ad38dc531fb35167f6778312a244bb2fbb01
|
|
Change-Id: I4086978f2292538c458802a7fb56c0d3826f2def
|
|
Reorganized OutputDevice line functions - several of these functions
should be private. I have renamed the following functions:
* ImplInitLineColor -> InitLineColor (made this private)
* ImplPaintLineGeometryWithEvtlExpand -> PaintLineGeometryWithEvtlExpand
(made this private)
* ImplTryDrawPolyLineDirect -> TryDrawPolyLineDirectNoAA (made this
private)
I also made a small code change to make bTryAA more clear, and also
change (bTryAA && TryDrawPolyLineDirect(rPoly.getB2DPolygon()) to a
nestied if statement.
Change-Id: I90e8083d69b715912bf0ad1d400bc355f3501981
|
|
Change-Id: I400d38ccb2e87c6435bc767c13a52beb62baa435
|
|
Move ImplSubdivideBezier(Polygon) to Polygon as a static function.
Move ImplSubdivideBezier(PolyPolygon) to PolyPolygon as a static function.
Change-Id: I0d006a8a2d3a8d9ba1aec913ceecb38507e4dd2f
|
|
I have split outdev2.cxx into the following files:
+ alpha.cxx
+ bezier.cxx
+ bitmap.cxx
+ blend.cxx
+ gradient.cxx
+ hatch.cxx
+ pixel.cxx
+ polygon.cxx
+ line.cxx
+ polyline.cxx
+ rect.cxx
+ transparent.cxx
I have also moved all the DrawDev functions into outdev.cxx
Change-Id: Ica7057250526cd1ed680e5ec173c73265a586ea3
|