From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Thu May 29 2003 - 18:13:17 EDT
Our Win32 drawLine function DOES draw 5 pixels in this case, and the
GDK/X function only draws 4!
Since I'm trying to pixel-perfect the rulers, I get the following
differences:
the (almost) pixel perfect GDK version:
http://pino.frontisterion.nl/uwog/rulers_gdk.png
and the win32 version:
http://pino.frontisterion.nl/uwog/rulers_win32.png
note that the ruler code is 100% XP, so this _is_ a bug, and all drawing
functions should act the same.
Which one should we adopt: the (IMO good working) win32 "routine", or
the GDK one?
Marc
Op do 29-05-2003, om 12:32 schreef Marc Maurer:
> 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
-- Marc Maurer <j.m.maurer@student.utwente.nl>
This archive was generated by hypermail 2.1.4 : Thu May 29 2003 - 18:22:16 EDT