#12383: FillTrangle produces slightly different results if drawn in a BPicture
----------------------------------+----------------------------
Reporter: jackburton | Owner: nobody
Type: bug | Status: assigned
Priority: low | Milestone: Unscheduled
Component: Servers/app_server | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Comment (by jackburton):
I've noticed that Painter::_DrawTriangle() (which is called for the
fill_triangle op), aligns the points using the "_Align()" function with
the "centerOffset" parameter set to true, while Painter::DrawPolygon()
(called for the fill_polygon op) calls _Align() with the centerOffset
parameter set to false.
_Align(), if centerOffset is set to true, increments the point coordinates
by 0.5.
I don't know which one is correct, but it's what's causing this bug.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12383#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.