From cf451eb4479173ffe7a82a1dc56a05624568997a Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 23 Aug 1999 18:53:11 +0000 Subject: Fix from Simon Kelley: Set expose_count in GdkEventExposes correctly. * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon Kelley: Set expose_count in GdkEventExposes correctly. * gdk/win32/gdkwindow.c: Remove dead code (#ifdef MULTIPLE_WINDOW_CLASSES). * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer for bug in NT, apparently NT *does* draw the end pixel, too, in LineTo with a one-pixel pen, so we don't have to do it ourselves. --- gdk/win32/gdkdraw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gdk/win32/gdkdraw.c') diff --git a/gdk/win32/gdkdraw.c b/gdk/win32/gdkdraw.c index 80abf7bcc2..ffa1418ea6 100644 --- a/gdk/win32/gdkdraw.c +++ b/gdk/win32/gdkdraw.c @@ -95,10 +95,11 @@ gdk_draw_line (GdkDrawable *drawable, if (!LineTo (hdc, x2, y2)) g_warning ("gdk_draw_line: LineTo #1 failed"); /* LineTo doesn't draw the last point, so if we have a pen width of 1, - * we draw the end pixel separately... With wider pens it hopefully - * doesn't matter? + * we draw the end pixel separately... With wider pens we don't care. + * //HB: But the NT developers don't read their API documentation ... */ - if (gc_private->pen_width == 1) + if (gc_private->pen_width == 1 + && GetVersion () > 0x80000000) if (!LineTo (hdc, x2 + 1, y2)) g_warning ("gdk_draw_line: LineTo #2 failed"); gdk_gc_postdraw (drawable_private, gc_private); -- cgit v1.2.1