summaryrefslogtreecommitdiff
path: root/libs/canvas/xfade_curve.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-29 09:05:15 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-29 09:05:15 -0400
commitc36504f2ecd4e913465ae9a726f90020dd7aa3cb (patch)
treeaa8bb1655bd3c6dad1f729c4e9c396ea74760c84 /libs/canvas/xfade_curve.cc
parent1a84fa3c421949f9eb5ab45bb074d8a0ae64faac (diff)
NOOP: fix indentation
Diffstat (limited to 'libs/canvas/xfade_curve.cc')
-rw-r--r--libs/canvas/xfade_curve.cc102
1 files changed, 51 insertions, 51 deletions
diff --git a/libs/canvas/xfade_curve.cc b/libs/canvas/xfade_curve.cc
index 88ae10c410..0b6b4811d0 100644
--- a/libs/canvas/xfade_curve.cc
+++ b/libs/canvas/xfade_curve.cc
@@ -1,20 +1,20 @@
/*
- Copyright (C) 2013 Paul Davis
- Copyright (C) 2014 Robin Gareus <robin@gareus.org>
+ Copyright (C) 2013 Paul Davis
+ Copyright (C) 2014 Robin Gareus <robin@gareus.org>
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@@ -36,7 +36,7 @@ XFadeCurve::XFadeCurve (Canvas* c)
, _xfadeposition (Start)
, _outline_color (0x000000ff)
, _fill_color (0x22448880)
- , show_background_fade (false)
+ , show_background_fade (false)
{
}
@@ -46,7 +46,7 @@ XFadeCurve::XFadeCurve (Canvas* c, XFadePosition pos)
, _xfadeposition (pos)
, _outline_color (0x000000ff)
, _fill_color (0x22448880)
- , show_background_fade (false)
+ , show_background_fade (false)
{
}
@@ -56,7 +56,7 @@ XFadeCurve::XFadeCurve (Item* parent)
, _xfadeposition (Start)
, _outline_color (0x000000ff)
, _fill_color (0x22448880)
- , show_background_fade (false)
+ , show_background_fade (false)
{
}
@@ -66,7 +66,7 @@ XFadeCurve::XFadeCurve (Item* parent, XFadePosition pos)
, _xfadeposition (pos)
, _outline_color (0x000000ff)
, _fill_color (0x22448880)
- , show_background_fade (false)
+ , show_background_fade (false)
{
}
@@ -252,43 +252,43 @@ XFadeCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) co
set_source_rgba (context, _fill_color);
context->fill ();
- if (show_background_fade) {
- /* fill background fade */
- context->save ();
- context->begin_new_path ();
- context->append_path (IS_START ? *path_in : *path_out);
- close_path(draw, context, IS_START ? _in : _out, true);
- context->set_fill_rule (Cairo::FILL_RULE_EVEN_ODD);
- context->clip ();
- context->begin_new_path ();
- context->append_path (IS_START ? *path_out: *path_in);
- close_path(draw, context, IS_START ? _out : _in, true);
- set_source_rgba (context, fill_shaded);
- context->set_fill_rule (Cairo::FILL_RULE_WINDING);
- context->fill ();
- context->restore ();
- }
+ if (show_background_fade) {
+ /* fill background fade */
+ context->save ();
+ context->begin_new_path ();
+ context->append_path (IS_START ? *path_in : *path_out);
+ close_path(draw, context, IS_START ? _in : _out, true);
+ context->set_fill_rule (Cairo::FILL_RULE_EVEN_ODD);
+ context->clip ();
+ context->begin_new_path ();
+ context->append_path (IS_START ? *path_out: *path_in);
+ close_path(draw, context, IS_START ? _out : _in, true);
+ set_source_rgba (context, fill_shaded);
+ context->set_fill_rule (Cairo::FILL_RULE_WINDING);
+ context->fill ();
+ context->restore ();
+ }
/* draw lines over fills */
- /* fade in line */
- if (IS_START || show_background_fade) {
- set_source_rgba (context, IS_START ? _outline_color : outline_shaded);
- context->set_line_width (IS_START ? 1.0 : .5);
+ /* fade in line */
+ if (IS_START || show_background_fade) {
+ set_source_rgba (context, IS_START ? _outline_color : outline_shaded);
+ context->set_line_width (IS_START ? 1.0 : .5);
- context->begin_new_path ();
- context->append_path (*path_in);
- context->stroke();
- }
-
- /* fade out line */
- if (!IS_START || show_background_fade) {
- set_source_rgba (context, IS_START ? outline_shaded :_outline_color);
- context->set_line_width (IS_START ? .5 : 1.0);
-
- context->begin_new_path ();
- context->append_path (*path_out);
- context->stroke();
- }
+ context->begin_new_path ();
+ context->append_path (*path_in);
+ context->stroke();
+ }
+
+ /* fade out line */
+ if (!IS_START || show_background_fade) {
+ set_source_rgba (context, IS_START ? outline_shaded :_outline_color);
+ context->set_line_width (IS_START ? .5 : 1.0);
+
+ context->begin_new_path ();
+ context->append_path (*path_out);
+ context->stroke();
+ }
context->restore ();