Don't try to compensate for LineTo() not drawing the end pixel. It causes

2003-03-09  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
	compensate for LineTo() not drawing the end pixel. It causes more
	harm than benefits, see bug #81895.
This commit is contained in:
Tor Lillqvist 2003-03-09 17:15:48 +00:00 committed by Tor Lillqvist
parent 3db24eb81c
commit ae90aab7ff
6 changed files with 32 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-03-09 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
compensate for LineTo() not drawing the end pixel. It causes more
harm than benefits, see bug #81895.
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -1,3 +1,9 @@
2003-03-09 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
compensate for LineTo() not drawing the end pixel. It causes more
harm than benefits, see bug #81895.
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -1,3 +1,9 @@
2003-03-09 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
compensate for LineTo() not drawing the end pixel. It causes more
harm than benefits, see bug #81895.
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -1,3 +1,9 @@
2003-03-09 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
compensate for LineTo() not drawing the end pixel. It causes more
harm than benefits, see bug #81895.
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -1,3 +1,9 @@
2003-03-09 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
compensate for LineTo() not drawing the end pixel. It causes more
harm than benefits, see bug #81895.
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -1214,18 +1214,14 @@ draw_segments (GdkGCWin32 *gcwin32,
}
else
GDI_CALL (MoveToEx, (hdc, segs[i].x1, segs[i].y1, NULL)) &&
GDI_CALL (LineTo, (hdc, segs[i].x2, segs[i].y2)) &&
(gcwin32->pen_width <= 1 &&
GDI_CALL (LineTo, (hdc, segs[i].x2 + 1, segs[i].y2 + 1)));
GDI_CALL (LineTo, (hdc, segs[i].x2, segs[i].y2));
}
}
else
{
for (i = 0; i < nsegs; i++)
GDI_CALL (MoveToEx, (hdc, segs[i].x1, segs[i].y1, NULL)) &&
GDI_CALL (LineTo, (hdc, segs[i].x2, segs[i].y2)) &&
(gcwin32->pen_width <= 1 &&
GDI_CALL (LineTo, (hdc, segs[i].x2 + 1, segs[i].y2 + 1)));
GDI_CALL (LineTo, (hdc, segs[i].x2, segs[i].y2));
}
}