Add my copyright to files I've modified.
[synfig.git] / synfig-core / trunk / src / modules / mod_png / trgt_png.cpp
index c0dd6c2..09c2152 100644 (file)
@@ -2,8 +2,11 @@
 /*!    \file trgt_png.cpp
 **     \brief png_trgt Target Module
 **
+**     $Id$
+**
 **     \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
@@ -201,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<char *>(get_canvas()->get_name().c_str()) },
-               { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast<char *>(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<char *>(get_canvas()->get_name().c_str()),
+                 strlen(get_canvas()->get_name().c_str()) },
+               { PNG_TEXT_COMPRESSION_NONE, "Description", const_cast<char *>(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));
 
@@ -215,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;
 }