summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2002-03-21 22:36:02 +0000
committerTor Lillqvist <tml@src.gnome.org>2002-03-21 22:36:02 +0000
commit1ffa06c6a52e64602f5cd7992b61b40d97948f50 (patch)
treeba3d2c1523eab45cbe90fec864e96655140b9ae3 /gdk
parent74c237817827b1c738b0319be5a3034ba6764210 (diff)
downloadgtk+-1ffa06c6a52e64602f5cd7992b61b40d97948f50.tar.gz
Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix
2002-03-22 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441, but that is just the special case of one-pixel wide one-pixel on-off dotted lines. To fully implement generic X11 style dashed lines a major rewrite would be needed.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkgc-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/win32/gdkgc-win32.c b/gdk/win32/gdkgc-win32.c
index 4bbc76750c..cefdfd9c98 100644
--- a/gdk/win32/gdkgc-win32.c
+++ b/gdk/win32/gdkgc-win32.c
@@ -614,7 +614,7 @@ gdk_win32_gc_set_dashes (GdkGC *gc,
return;
}
- win32_gc->pen_style = PS_COSMETIC; /* ??? */
+ win32_gc->pen_style &= ~PS_STYLE_MASK;
switch (n)
{
case 2:
@@ -627,7 +627,7 @@ gdk_win32_gc_set_dashes (GdkGC *gc,
else
{
win32_gc->pen_style |= PS_DOT;
- GDK_NOTE (GC, g_print ("gdk_win32_gc_set_dashes: PS_DOT (%d,%d)\n",
+ GDK_NOTE (GC, g_print ("gdk_win32_gc_set_dashes: PS_DOT (%d,%d)\n",
dash_list[0], dash_list[1]));
}
break;