]> Pileus Git - ~andy/gtk/commitdiff
Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix
authorTor Lillqvist <tml@iki.fi>
Thu, 21 Mar 2002 22:36:02 +0000 (22:36 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 21 Mar 2002 22:36:02 +0000 (22:36 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkgc-win32.c

index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index d6a6d4ff5136c4b9cf199b9c808cbeed8d3c99f4..2c7ce724797144c300f1803a706c9b23e9476a0c 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-21  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
index 4bbc76750ccd73e4e62da34d61f7dfdc1840dbcf..cefdfd9c98c6ea3e502f89ce7d7e2247545fc47e 100644 (file)
@@ -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;