From ae90aab7ffff30357ecc9b21e9c9d45a87f17edc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 9 Mar 2003 17:15:48 +0000 Subject: Don't try to compensate for LineTo() not drawing the end pixel. It causes 2003-03-09 Tor Lillqvist * 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. --- gdk/win32/gdkdrawable-win32.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdk') diff --git a/gdk/win32/gdkdrawable-win32.c b/gdk/win32/gdkdrawable-win32.c index b8561b34ed..3b36f4de62 100644 --- a/gdk/win32/gdkdrawable-win32.c +++ b/gdk/win32/gdkdrawable-win32.c @@ -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)); } } -- cgit v1.2.1