mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Improve polygon filling, patch by Tim Jobling
svn path=/trunk/; revision=4851
This commit is contained in:
parent
9ee4f092fc
commit
2730a5ab14
1 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: fillshap.c,v 1.18 2003/05/18 17:16:18 ea Exp $ */
|
/* $Id: fillshap.c,v 1.19 2003/06/06 10:27:43 gvg Exp $ */
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -155,10 +155,10 @@ W32kPolygon(HDC hDC,
|
||||||
// Draw the Polygon Edges with the current pen
|
// Draw the Polygon Edges with the current pen
|
||||||
for (CurrentPoint = 0; CurrentPoint < Count; ++CurrentPoint)
|
for (CurrentPoint = 0; CurrentPoint < Count; ++CurrentPoint)
|
||||||
{
|
{
|
||||||
DestRect.bottom = MAX(DestRect.bottom, Points[CurrentPoint].y + dc->w.DCOrgY);
|
DestRect.bottom = MAX(DestRect.bottom, Points[CurrentPoint].y);
|
||||||
DestRect.top = MIN(DestRect.top, Points[CurrentPoint].y + dc->w.DCOrgY);
|
DestRect.top = MIN(DestRect.top, Points[CurrentPoint].y);
|
||||||
DestRect.right = MAX(DestRect.right, Points[CurrentPoint].y + dc->w.DCOrgX);
|
DestRect.right = MAX(DestRect.right, Points[CurrentPoint].y);
|
||||||
DestRect.left = MIN(DestRect.left, Points[CurrentPoint].y + dc->w.DCOrgX);
|
DestRect.left = MIN(DestRect.left, Points[CurrentPoint].y);
|
||||||
}//for
|
}//for
|
||||||
|
|
||||||
//Now fill the polygon with the current brush.
|
//Now fill the polygon with the current brush.
|
||||||
|
|
Loading…
Reference in a new issue