[AD] [ alleg-Bugs-3367185 ] al_draw_rectangle misses bottom-left corner pixel

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #3367185, was opened at 2011-07-14 12:00
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3367185&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Addons
Group: 5.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: al_draw_rectangle misses bottom-left corner pixel

Initial Comment:
When the thickness is negative, the implementation on DirectX misses 1 pixel on the bottom-left corner of the rectangle.
This is because the ALLEGRO_PRIM_LINE_LOOP is simulated by adding final closing line to the vertex buffer, but it is drawn in opposite direction. 

To fix, the direction of final closing line must be from bottom to up, i.e. from last point in buffer to first one. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3367185&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/