X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fpalette.cpp;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fpalette.cpp;h=8355407f52a84a3455c01cae06bfcafab7ba6e25;hb=e8a065f2385c219c511b57dac52786120bfa097d;hp=1208a8da9c5d20cc6cfa59f809381221cc80898b;hpb=d02b4a81e261e313ff3a8723b8579d48b113cbfb;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/palette.cpp b/synfig-core/trunk/src/synfig/palette.cpp index 1208a8d..8355407 100644 --- a/synfig-core/trunk/src/synfig/palette.cpp +++ b/synfig-core/trunk/src/synfig/palette.cpp @@ -5,16 +5,17 @@ ** $Id: palette.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ ** ** \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 */ /* ========================================================================= */ @@ -88,9 +89,10 @@ Palette::Palette(const Surface& surface, int max_colors): name_(_("Surface Palette")) { max_colors-=2; - for(int y=0;yadd(color); + continue; + } + + + push_back(color); + continue; } sort(rbegin(),rend()); @@ -138,6 +175,7 @@ Palette::Palette(const Surface& surface, int max_colors): pop_back(); find_closest(item.color)->add(item.color,item.weight); } +*/ push_back(Color::black()); push_back(Color::white());