don't try to draw more than 32767 segments at a time, since XDrawSegments

* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
	segments at a time, since XDrawSegments cannot handle more than this.

	fixes bug #122026.
This commit is contained in:
David Odin 2004-02-16 22:59:26 +00:00
parent 27efde9806
commit 00a6e3be92
6 changed files with 45 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2004-02-16 DindinX <david@dindinx.org>
* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
segments at a time, since XDrawSegments cannot handle more than this.
fixes bug #122026.
Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call

View File

@ -1,3 +1,10 @@
2004-02-16 DindinX <david@dindinx.org>
* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
segments at a time, since XDrawSegments cannot handle more than this.
fixes bug #122026.
Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call

View File

@ -1,3 +1,10 @@
2004-02-16 DindinX <david@dindinx.org>
* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
segments at a time, since XDrawSegments cannot handle more than this.
fixes bug #122026.
Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call

View File

@ -1,3 +1,10 @@
2004-02-16 DindinX <david@dindinx.org>
* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
segments at a time, since XDrawSegments cannot handle more than this.
fixes bug #122026.
Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call

View File

@ -1,3 +1,10 @@
2004-02-16 DindinX <david@dindinx.org>
* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
segments at a time, since XDrawSegments cannot handle more than this.
fixes bug #122026.
Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call

View File

@ -832,6 +832,16 @@ gdk_draw_segments (GdkDrawable *drawable,
g_return_if_fail (GDK_IS_GC (gc));
g_return_if_fail (nsegs >= 0);
while (num_segments >= 32000)
{
GDK_DRAWABLE_GET_CLASS (drawable)->draw_segments (drawable,
gc,
segs,
32000);
num_segments -= 32000;
segments += 32000;
}
GDK_DRAWABLE_GET_CLASS (drawable)->draw_segments (drawable, gc, segs, nsegs);
}