[aseprite] 41/51: Minor changes in some comments

Tobias Hansen thansen at moszumanska.debian.org
Mon Jul 11 21:35:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 71d2a2e2e75a6fc696029005a30ffb662a061fac
Author: David Capello <davidcapello at gmail.com>
Date:   Tue Jul 5 11:44:58 2016 -0300

    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 0ffc70d..643be6a 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 ff3790f..12af81c 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,
     "<PixlyAnimation version=\"1.5\">\n"
     "\t<Info "
     "sheetWidth=\"%d\" sheetHeight=\"%d\" "
@@ -453,8 +453,8 @@ bool PixlyFormat::onSave(FileOp* fop)
 
       int duration = sprite->frameDuration(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<Frame duration=\"%d\" visible=\"%s\">\n"
         "\t\t\t<Region x=\"%d\" y=\"%d\" width=\"%d\" height=\"%d\"/>\n"
         "\t\t\t<Index linear=\"%d\" collumn=\"%d\" row=\"%d\"/>\n"
@@ -497,7 +497,7 @@ bool PixlyFormat::onSave(FileOp* fop)
     } // layer
   } // frame
 
-  fprintf(xml_fp, 
+  fprintf(xml_fp,
       "\t</Frames>\n"
       "</PixlyAnimation>\n"
    );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list