From 90c55b0f029e8e266bdd0424072f93cd4a51a7fb Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Wed, 13 Jul 2011 08:30:54 +0200 Subject: calendar improvement: removed unnecessary drawing lines A slightly tweaked DrawButtonFace() is all that is really required. --- src/gui/fpg_popupcalendar.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gui/fpg_popupcalendar.pas b/src/gui/fpg_popupcalendar.pas index cace4f97..74a48f71 100644 --- a/src/gui/fpg_popupcalendar.pas +++ b/src/gui/fpg_popupcalendar.pas @@ -352,9 +352,9 @@ begin // inherited HandlePaint; Canvas.BeginDraw; Canvas.Clear(BackgroundColor); - Canvas.SetColor(clWindowBackground); - Canvas.DrawRectangle(0, 0, Width, Height); // black rectangle border - Canvas.DrawButtonFace(1, 1, Width-1, Height-1, []); // 3d rectangle inside black border +// Canvas.SetColor(clWindowBackground); +// Canvas.DrawRectangle(0, 0, Width, Height); // black rectangle border + Canvas.DrawButtonFace(0, 0, Width, Height, []); // 3d rectangle inside black border Canvas.EndDraw; end; -- cgit v1.2.3-70-g09d2