From ae90aab7ffff30357ecc9b21e9c9d45a87f17edc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 9 Mar 2003 17:15:48 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gdk/win32/gdkdrawable-win32.c | 8 ++------ 6 files changed, 32 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 280aa0f98d..c823d7ef99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-03-08 Matthias Clasen Bug #107664 continued: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 280aa0f98d..c823d7ef99 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +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. + 2003-03-08 Matthias Clasen Bug #107664 continued: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 280aa0f98d..c823d7ef99 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +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. + 2003-03-08 Matthias Clasen Bug #107664 continued: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 280aa0f98d..c823d7ef99 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +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. + 2003-03-08 Matthias Clasen Bug #107664 continued: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 280aa0f98d..c823d7ef99 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +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. + 2003-03-08 Matthias Clasen Bug #107664 continued: 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)); } }