Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » gdk_draw_line Start/End point [RSS Feed]

#1 Oct. 29, 2005 15:03:27

Mattias G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

gdk_draw_line Start/End point

Hi all,

I searched the gtk site, the internet and the archive, but I didn't found
any clue.

When drawing under linux/X with gdk_draw_line a line from 0,0 to 2,2, the
point at 2,2 is missing.
When drawing with gdk_draw_line a line from 2,2 to 0,4 the point at 2,2 is
still missing.

It seems gdk_draw_line always misses a point, but it depends on the
direction of the line, if it misses the start or the end point.
Is there a flag or another function, that draws the line including the start
point, but excluding the end point, independent of the line direction (e.g.
like the winapi 'lineto' function)?

gtk-list mailing list


  • Root
  • » GTK+
  • » gdk_draw_line Start/End point [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of April

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support