X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftarget.cpp;h=6a73822cb42ab776350170cb8d87be0157df9ed7;hb=1db43ade922934813333bf62b3bda90a793a4170;hp=5fb1790775bef9fb04892f533ea677cc60db1761;hpb=e3acc0b267b14fda5db3c7bbb2f218b993ef84b3;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/target.cpp b/synfig-core/trunk/src/synfig/target.cpp index 5fb1790..6a73822 100644 --- a/synfig-core/trunk/src/synfig/target.cpp +++ b/synfig-core/trunk/src/synfig/target.cpp @@ -1,27 +1,28 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file target.cpp ** \brief Target Class Implementation ** -** $Id: target.cpp,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package 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. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package 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. ** \endlegal */ /* ========================================================================= */ /* === H E A D E R S ======================================================= */ -#define SINFG_NO_ANGLE +#define SYNFIG_NO_ANGLE #ifdef HAVE_CONFIG_H # include @@ -33,29 +34,29 @@ #include "target_null.h" #include "target_null_tile.h" -using namespace sinfg; +using namespace synfig; using namespace etl; using namespace std; -sinfg::Target::Book* sinfg::Target::book_; -sinfg::Target::ExtBook* sinfg::Target::ext_book_; +synfig::Target::Book* synfig::Target::book_; +synfig::Target::ExtBook* synfig::Target::ext_book_; -static sinfg::Gamma* default_gamma_; +static synfig::Gamma* default_gamma_; /* === P R O C E D U R E S ================================================= */ bool Target::subsys_init() { - book_=new sinfg::Target::Book(); - ext_book_=new sinfg::Target::ExtBook(); - - default_gamma_=new sinfg::Gamma(1.0/2.2); + book_=new synfig::Target::Book(); + ext_book_=new synfig::Target::ExtBook(); + + default_gamma_=new synfig::Gamma(1.0/2.2); //default_gamma_->set_black_level(0.05); // Default to 5% black level. - - book()["null"]=std::pair(Target_Null::create,"null"); + + book()["null"]=std::pair(Target_Null::create,"null"); ext_book()["null"]="null"; - book()["null-tile"]=std::pair(Target_Null_Tile::create,"null-tile"); + book()["null-tile"]=std::pair(Target_Null_Tile::create,"null-tile"); ext_book()["null-tile"]="null-tile"; return true; @@ -88,12 +89,13 @@ Target::ext_book() Target::Target(): quality_(4), gamma_(*default_gamma_), - remove_alpha(false) + remove_alpha(false), + avoid_time_sync_(false) { } void -sinfg::Target::set_canvas(Canvas::Handle c) +synfig::Target::set_canvas(etl::handle c) { canvas=c; RendDesc desc=canvas->rend_desc(); @@ -106,6 +108,6 @@ Target::create(const String &name, const String &filename) { if(!book().count(name)) return handle(); - + return Target::Handle(book()[name].first(filename.c_str())); }