From d1e205cfb2a731e372d38a8ec6d44ac361297428 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Fri, 9 Oct 2009 13:05:33 +0200 Subject: Removed redundant BeginDraw..EndDraw calls in ScrollBar painting. Signed-off-by: Graeme Geldenhuys --- src/gui/fpg_scrollbar.pas | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2