diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-07-13 08:30:54 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-07-13 08:30:54 +0200 |
commit | 90c55b0f029e8e266bdd0424072f93cd4a51a7fb (patch) | |
tree | b7b2b579e341791e5d0718ad30c9e088391e837c /src | |
parent | 4e7dc68ff9fab4992d4b652f00c4ab9271610c40 (diff) | |
download | fpGUI-90c55b0f029e8e266bdd0424072f93cd4a51a7fb.tar.xz |
calendar improvement: removed unnecessary drawing lines
A slightly tweaked DrawButtonFace() is all that is really required.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_popupcalendar.pas | 6 |
1 files changed, 3 insertions, 3 deletions
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; |