Lazarus

Programming => Widgetset => GTK => Topic started by: groundcad on September 01, 2015, 05:06:25 pm

Title: Drawing on Windows VS GTK2 (linux32)
Post by: groundcad on September 01, 2015, 05:06:25 pm
Hi
I developed a 2D CAD software (http://www.groundcad.com/) using lazarus 1.4.2
I am using LCL only. The version 0.3.1 is stable on windows 32 xp/7
with no problems in the drawing.
Actually, I ported my software to linux(32) mint 17.2. and I used Lazarus 1.4.2 configured on GTK2.
On linux If I zoomed In my drawing (maximum scale),
I get a duplicated lines in my canavs !

In my code, I used

 paintbmp  : Bitmap ;
 paintbox   : TPaintbox;

 I draw in the canvas of paintbmp
 I refresh The painbox by the procedure

 procedure Tmainform.paintboxPaint(Sender: TObject);
 begin
     paintbox.Canvas.Draw(0,0,paintbmp);
 end;

What is the problem in gtk2 ?