X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_png%2Ftrgt_png.cpp;h=09c2152efa39506b31133e3c3a93f89ec9c9eaa8;hb=c5b77a538a92291a663bdc9bf50c7f10dbeae1ea;hp=1f2a37f0834e57d9928d7f8988ffd41434f13ac5;hpb=675aca937d23c7f460edf42ac3ec0ffa06205a2c;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_png/trgt_png.cpp b/synfig-core/trunk/src/modules/mod_png/trgt_png.cpp index 1f2a37f..09c2152 100644 --- a/synfig-core/trunk/src/modules/mod_png/trgt_png.cpp +++ b/synfig-core/trunk/src/modules/mod_png/trgt_png.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -203,10 +204,14 @@ png_trgt::start_frame(synfig::ProgressCallback *callback) // Output any text info along with the file png_text comments[]= { - { PNG_TEXT_COMPRESSION_NONE, "Title", const_cast(get_canvas()->get_name().c_str()) }, - { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast(get_canvas()->get_description().c_str()) }, -// { PNG_TEXT_COMPRESSION_NONE, "Copyright", "(c) 2004 Voria Studios, LLC" }, - { PNG_TEXT_COMPRESSION_NONE, "Software", "SYNFIG" }, + { PNG_TEXT_COMPRESSION_NONE, "Title", const_cast(get_canvas()->get_name().c_str()), + strlen(get_canvas()->get_name().c_str()) }, + { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast(get_canvas()->get_description().c_str()), + strlen(get_canvas()->get_description().c_str()) }, +// { PNG_TEXT_COMPRESSION_NONE, "Copyright", "(c) 2004 Voria Studios, LLC", +// strlen("(c) 2004 Voria Studios, LLC") }, + { PNG_TEXT_COMPRESSION_NONE, "Software", "SYNFIG", + strlen("SYNFIG") }, }; png_set_text(png_ptr,info_ptr,comments,sizeof(comments)/sizeof(png_text)); @@ -217,7 +222,7 @@ png_trgt::start_frame(synfig::ProgressCallback *callback) } Color * -png_trgt::start_scanline(int scanline) +png_trgt::start_scanline(int /*scanline*/) { return color_buffer; }