]> Pileus Git - ~andy/gtk/commitdiff
Merge from gtk-2-0:
authorTor Lillqvist <tml@iki.fi>
Wed, 11 Sep 2002 20:51:05 +0000 (20:51 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 11 Sep 2002 20:51:05 +0000 (20:51 +0000)
2002-09-12  Tor Lillqvist  <tml@iki.fi>

Merge from gtk-2-0:

* gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
render_line_vertical): Some spacing cleanup. Return TRUE.

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

index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f655caaeb80e7997c6f9d78fc97e68603204c01b..a33d1012f3ddb110dcf3f9f8ea2ec2022fc973af 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-12  Tor Lillqvist  <tml@iki.fi>
+
+       Merge from gtk-2-0:
+
+       * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
+       render_line_vertical): Some spacing cleanup. Return TRUE.
+       
 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
index f4d37b3d5c2be23e77114bfdfe5efc9122a40a11..148484ed5d128ae7ea0789abc49fe46dacda9a8f 100644 (file)
@@ -259,15 +259,16 @@ gdk_win32_set_colormap (GdkDrawable *drawable,
  * too limited to do so
  */
 static inline gboolean
-render_line_horizontal (HDC hdc,
-                        int x1, 
-                        int x2,
-                        int y,
-                        int pen_width,
-                        int *dashes,
-                        int num_dashes)
+render_line_horizontal (HDC    hdc,
+                        int    x1, 
+                        int    x2,
+                        int    y,
+                        int    pen_width,
+                        DWORD *dashes,
+                        int    num_dashes)
 {
   int n;
+
   for (n = 0; x1 < x2; n++)
     {
       int len = dashes[n % num_dashes];
@@ -286,19 +287,21 @@ render_line_horizontal (HDC hdc,
 
       x1 += dashes[n % num_dashes];
     }
-}
 
+  return TRUE;
+}
 
 static inline gboolean
-render_line_vertical (HDC hdc,
-                        int x, 
-                        int y1,
-                        int y2,
-                        int pen_width,
-                        int *dashes,
-                        int num_dashes)
+render_line_vertical (HDC    hdc,
+                     int    x, 
+                      int    y1,
+                      int    y2,
+                      int    pen_width,
+                      DWORD *dashes,
+                     int    num_dashes)
 {
   int n;
+
   for (n = 0; y1 < y2; n++)
     {
       int len = dashes[n % num_dashes];
@@ -315,6 +318,8 @@ render_line_vertical (HDC hdc,
           }
       y1 += dashes[n % num_dashes];
     }
+
+  return TRUE;
 }
 
 static void
@@ -1323,7 +1328,7 @@ _gdk_win32_blit (gboolean              use_fg_bg,
   HRGN src_rgn, draw_rgn, outside_rgn;
   RECT r;
   GdkDrawableImplWin32 *draw_impl;
-  GdkDrawableImplWin32 *src_impl;
+  GdkDrawableImplWin32 *src_impl = NULL;
   gint src_width, src_height;
   
   GDK_NOTE (MISC, g_print ("_gdk_win32_blit: src:%s %dx%d@+%d+%d\n"