Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-09

customdrawn typo

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bernd
svn diff customdrawn_common.pas
Index: customdrawn_common.pas
===================================================================
--- customdrawn_common.pas      (Revision 46149)
+++ customdrawn_common.pas      (Arbeitskopie)
@@ -699,7 +699,7 @@
   ADest.Line(ASize.cx - 1, ASize.cy - 1, ASize.cx - 1, -1);
   ADest.Pen.FPColor := TColorToFPColor($0099A8AC);
   ADest.Line(1, ASize.cy - 2, ASize.cx - 2, ASize.cy - 2);
-  ADest.Line(ASize.cx - 2, ASize.cx - 2, ASize.cx - 2, 0);
+  ADest.Line(ASize.cx - 2, ASize.cy - 2, ASize.cx - 2, 0);
   ADest.Pen.FPColor := TColorToFPColor($00E2EFF1);
   ADest.Line(1, 1, ASize.cx - 2, 1);
   ADest.Line(1, 1, 1, ASize.cy - 2);

This is responsible for a small 2 pixel sized irregularitity at the lower right corner of a customdrawn button. I noticed it when trying to change the border colors to something less bright, then it becomes even more obvious.

I needed to write this down quickly before I forget it again, so I'm posting it here.

Bernd.

Reply by email

Felipe Monteiro de Carvalho
to Bernd

thanks, applied in rev 46153

Felipe Monteiro de Carvalho

Bernd wrote 32 lines
svn diff customdrawn_common.pas Index: customdrawn_common.pas =================================================================== --- customdrawn_common.pas (Revision 46149) +++ customdrawn_common.pas (Arbeitskopie) @@ -699,7 +699,7 @@ ADest.Line(ASize.cx - 1, ASize.cy - 1, ASize.cx - 1, -1); ADest.Pen.FPColor := TColorToFPColor($0099A8AC); ADest.Line(1, ASize.cy - 2, ASize.cx - 2, ASize.cy - 2); - ADest.Line(ASize.cx - 2, ASize.cx - 2, ASize.cx - 2, 0); + ADest.Line(ASize.cx - 2, ASize.cy - 2, ASize.cx - 2, 0); ADest.Pen.FPColor := TColorToFPColor($00E2EFF1); ADest.Line(1, 1, ASize.cx - 2, 1); ADest.Line(1, 1, 1, ASize.cy - 2); This is responsible for a small 2 pixel sized irregularitity at the lower right corner of a customdrawn button. I noticed it when trying to change the border colors to something less bright, then it becomes even more obvious. I needed to write this down quickly before I forget it again, so I'm posting it here. Bernd. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Felipe Monteiro de Carvalho

Reply by email