[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [haiku-bugs] Re: [Haiku] #12383: FillTrangle produces slightly different results if drawn in a BPict
From: "Haiku" <trac () haiku-os ! org>
Date: 2018-08-30 11:59:12
Message-ID: 061.7403a25ac4bb9056a0d836a72ae670e3 () haiku-os ! org
[Download RAW message or body]
--===============4254533983008287319==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
#12383: FillTrangle produces slightly different results if drawn in a BPict=
ure
----------------------------------+----------------------------
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.
--===============4254533983008287319==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic