Re: drawLine is f*cked?

From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Thu May 29 2003 - 06:32:57 EDT

  • Next message: Christian Neumair: "[PATCH] Insert Date and Time dialog HIGification patch"

    Op do 29-05-2003, om 12:03 schreef Hubert Figuiere:
    > On jeudi, mai 29, 2003, at 03:39 Europe/Paris, Marc Maurer wrote:
    >
    > > Just to be sure I'm not doing stange things here at 4 am: when I have
    > > this line of code
    > >
    > > m_pG->drawLine(left,top,left+m_pG->tlu(4),top);
    > >
    > > I expect a line of _____5______ pixels to be drawn, right?
    > >
    > > If so, then GR_UnixGraphix->drawLine is fscked (and since it passes
    > > direct to GDK, GDK is fscked), since it only draws 4. I don't believe
    > > what I'm writing here, so I want to be sure I don't miss anything...
    >
    > + 4 is 4 pixels :-)
    > It works the way it should :-)

    Why? When I draw a line from, say x coord 10 to 10+4=14, that's 5 pixels: 10, 11, 12, 13 and 14

    Marc



    This archive was generated by hypermail 2.1.4 : Thu May 29 2003 - 06:41:54 EDT