X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fsurface.h;h=265d8d7955e9f75ea832da2e79240d7fce482d27;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=5b1a8ebcd33a3d7021662e037afaecc3adb4651f;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/surface.h b/synfig-core/trunk/src/synfig/surface.h index 5b1a8eb..265d8d7 100644 --- a/synfig-core/trunk/src/synfig/surface.h +++ b/synfig-core/trunk/src/synfig/surface.h @@ -2,7 +2,7 @@ /*! \file surface.h ** \brief Surface and Pen Definitions ** -** $Id: surface.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -58,9 +58,9 @@ public: { if(!x.get_a()) return Color::alpha(); - + const float a(1.0f/x.get_a()); - + x.set_r(x.get_r()*a); x.set_g(x.get_g()*a); x.set_b(x.get_b()*a); @@ -137,7 +137,7 @@ public: alpha_pen(const etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc > &x): etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc >(x) { } - + alpha_pen(const etl::generic_pen& pen, const Color::value_type &a = 1, const _BlendFunc &func = _BlendFunc()): etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc >(pen,a,func) { }