diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 13:05:33 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 13:05:33 +0200 |
commit | d1e205cfb2a731e372d38a8ec6d44ac361297428 (patch) | |
tree | 8e7ae47b15cfacb47be06522d2c74496e6088a70 /src | |
parent | 37649f9b72fd7a011734a68331fc65a705ceeba3 (diff) | |
download | fpGUI-d1e205cfb2a731e372d38a8ec6d44ac361297428.tar.xz |
Removed redundant BeginDraw..EndDraw calls in ScrollBar painting.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_scrollbar.pas | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/fpg_scrollbar.pas b/src/gui/fpg_scrollbar.pas index 92793fa9..2a2b4bc9 100644 --- a/src/gui/fpg_scrollbar.pas +++ b/src/gui/fpg_scrollbar.pas @@ -126,9 +126,6 @@ end; procedure TfpgScrollBar.HandlePaint; begin - // Do NOT localize - Canvas.BeginDraw; - if Orientation = orVertical then begin DrawButton(0, 0, Width, Width, 'sys.sb.up', FScrollbarDownPart = sbpUpBack); @@ -141,7 +138,6 @@ begin end; DrawSlider(True); - Canvas.EndDraw; end; procedure TfpgScrollBar.RepaintSlider; |