summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-04-12 17:55:02 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-04-12 18:29:05 +0100
commitee1614a6a775545f2c1b6486f2735c1923fc49f1 (patch)
tree56081ab08f9f489dce0dda7fd16b47e787182103 /src/gui
parentb866e7363ad46bc06b6e490fa50af138767bd650 (diff)
downloadfpGUI-ee1614a6a775545f2c1b6486f2735c1923fc49f1.tar.xz
minor code cleanup
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_scrollbar.pas10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/fpg_scrollbar.pas b/src/gui/fpg_scrollbar.pas
index dd0a4c7c..440372dd 100644
--- a/src/gui/fpg_scrollbar.pas
+++ b/src/gui/fpg_scrollbar.pas
@@ -363,8 +363,6 @@ var
area: TfpgCoord;
mm: TfpgCoord;
begin
-// Canvas.BeginDraw;
-
if SliderSize > 1 then
SliderSize := 1;
@@ -436,15 +434,9 @@ begin
// Paint the slider button
if Orientation = orVertical then
- begin
- Canvas.DrawButtonFace(0, Width + FSliderPos, Width, FSliderLength, [btfIsEmbedded]);
-// Canvas.EndDraw(0, Width, Width, Height - Width - Width);
- end
+ Canvas.DrawButtonFace(0, Width + FSliderPos, Width, FSliderLength, [btfIsEmbedded])
else
- begin
Canvas.DrawButtonFace(Height + FSliderPos, 0, FSliderLength, Height, [btfIsEmbedded]);
-// Canvas.EndDraw(Height, 0, Width - Height - Height, Height);
- end;
end;
procedure TfpgScrollBar.HandleLMouseDown(x, y: integer; shiftstate: TShiftState);