"glitches" in gtk/gdk (was Re: new version of Gtk-- drawing widgets)
- From: Jon Trowbridge <trow emccta com>
- To: gtk-list redhat com
- Subject: "glitches" in gtk/gdk (was Re: new version of Gtk-- drawing widgets)
- Date: Fri, 20 Feb 1998 04:01:22 -0600
Two little things:
1) There is no gdk_draw_lines() function that allows you to draw properly-
joined lines (via XDrawLines()). Since gdk_draw_segments() and
gdk_draw_points() are provided, I guess that this is an oversight.
2) gdk_draw_polygon() doesn't quite do the right thing in one specific case:
if you are drawing an unfilled polygon, and you provide a list of points
in which the first point is != the last point, the function will connect
up everything in your list of points with XDrawLines() and then will
close your polygon by joining the first and last points with a call to
XDrawLine. This is all fine until you draw a "thick" unfilled polygon
with your line width set big enough. You then get hideously ugly results,
because you don't get proper joins between that last stray line segment
and the rest of your polygon.
I submitted a patch that fixes both problems. Don't know if they've made
it into the CVS gtk, or when/if they will if they haven't already...
-Jon Trowbridge
EMC Capital Management, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]