From 71d2a2e2e75a6fc696029005a30ffb662a061fac Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 5 Jul 2016 11:44:58 -0300 Subject: [PATCH] Minor changes in some comments --- src/app/file/file.cpp | 3 ++- src/app/file/pixly_format.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app/file/file.cpp b/src/app/file/file.cpp index 0ffc70dad..643be6a10 100644 --- a/src/app/file/file.cpp +++ b/src/app/file/file.cpp @@ -247,7 +247,8 @@ FileOp* FileOp::createSaveDocumentOperation(const Context* context, std::string warnings; bool fatal = false; - /* check image type support */ + // Check image type support + // TODO add support to automatically convert the image to a supported format switch (fop->m_document->sprite()->pixelFormat()) { case IMAGE_RGB: diff --git a/src/app/file/pixly_format.cpp b/src/app/file/pixly_format.cpp index ff3790f7d..12af81c2b 100644 --- a/src/app/file/pixly_format.cpp +++ b/src/app/file/pixly_format.cpp @@ -420,10 +420,10 @@ bool PixlyFormat::onSave(FileOp* fop) rows_pointer[y] = (png_bytep)png_malloc(png_ptr, size); memset(rows_pointer[y], 0, size); fop->setProgress(0.1 * (double)(y+1) / (double)height); - } + } - // XXX beware the required typo on Pixly xml: "totalCollumns" (sic) - fprintf(xml_fp, + // TODO XXX beware the required typo on Pixly xml: "totalCollumns" (sic) + fprintf(xml_fp, "\n" "\tframeDuration(frame); - // XXX beware the required typo on Pixly xml: "collumn" (sic) - fprintf(xml_fp, + // TODO XXX beware the required typo on Pixly xml: "collumn" (sic) + fprintf(xml_fp, "\t\t\n" "\t\t\t\n" "\t\t\t\n" @@ -497,7 +497,7 @@ bool PixlyFormat::onSave(FileOp* fop) } // layer } // frame - fprintf(xml_fp, + fprintf(xml_fp, "\t\n" "\n" );