diff options
author | Tor Lillqvist <tml@src.gnome.org> | 1999-08-23 18:53:11 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 1999-08-23 18:53:11 +0000 |
commit | cf451eb4479173ffe7a82a1dc56a05624568997a (patch) | |
tree | ad7de0bd2698b073cd55139f3e92494db092afff /gdk/win32/gdkdrawable-win32.c | |
parent | b52072a7f8d7abc4e9aefc1f8c045f9a63840365 (diff) | |
download | gtk+-cf451eb4479173ffe7a82a1dc56a05624568997a.tar.gz |
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.
Diffstat (limited to 'gdk/win32/gdkdrawable-win32.c')
-rw-r--r-- | gdk/win32/gdkdrawable-win32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk/win32/gdkdrawable-win32.c b/gdk/win32/gdkdrawable-win32.c index 80abf7bcc2..ffa1418ea6 100644 --- a/gdk/win32/gdkdrawable-win32.c +++ b/gdk/win32/gdkdrawable-win32.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); |