summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2003-03-09 17:15:48 +0000
committerTor Lillqvist <tml@src.gnome.org>2003-03-09 17:15:48 +0000
commitae90aab7ffff30357ecc9b21e9c9d45a87f17edc (patch)
treefe056b9df45c18c2ce2301a326673bf5a7cedfb7 /gdk
parent3db24eb81c07f1bf4f8b31ae8b7ffe86c2e9af7d (diff)
downloadgtk+-ae90aab7ffff30357ecc9b21e9c9d45a87f17edc.tar.gz
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.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkdrawable-win32.c8
1 files changed, 2 insertions, 6 deletions
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));
}
}