Hi, Thanks to your very interesting sample code was very easy to identify the problem.
There are two things happening. An extra pixel in white at the top. And missing pixels at bottom. The second case occurs in REPLACE and XOR modes. And it is inherent of the Win32 API. The extra pixel at the top was a bug in CD. We draw an extra pixel to complement the line drawn by the Win32 API. But when line width is more than one it looks odd. And when in XOR it looks worse. So I just add a test to avoid those situations. Fixed and committed to CVS. Thanks for the report and for the sample code. Best, Scuri > -----Original Message----- > From: Karagy [mailto:kar...@mail.ru] > Sent: quinta-feira, 12 de dezembro de 2013 16:30 > To: IUP discussion list. > Subject: [Iup-users] canvas line > > Hi, all! > > WinXP 32bit, iuplua 3.6 - 3.9. > Playing with iup.canvas, I found that the ends of the vertical lines near the > boundaries of the canvas looks strange. The effect becomes noticeable for a > line width of 2 or more. Unpainted point becomes visible at the upper end of > the line. At the lower end of the line appears vertical indentation height 1. > Effect does not depend on the presence of border canvas. > > See example in attach. > > > -- > Regards, > > Karagy ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users