mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
fixed miscalculation for upward or leftward bound diagonal lines
svn path=/trunk/; revision=5521
This commit is contained in:
parent
bd2daaee8b
commit
08f2d72ce1
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: lineto.c,v 1.13 2003/08/11 03:35:06 royce Exp $
|
||||
* $Id: lineto.c,v 1.14 2003/08/11 04:02:07 royce Exp $
|
||||
*/
|
||||
|
||||
#include "../vgaddi.h"
|
||||
|
@ -317,7 +317,7 @@ DrvLineTo(SURFOBJ *DestObj,
|
|||
xchange = -1;
|
||||
deltax = - deltax;
|
||||
hx = x2+1;
|
||||
x--;
|
||||
//x--;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -330,7 +330,7 @@ DrvLineTo(SURFOBJ *DestObj,
|
|||
ychange = -1;
|
||||
deltay = - deltay;
|
||||
vy = y2+1;
|
||||
y--;
|
||||
//y--;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue