Implemented main conversion module.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5587 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-10 13:50:53 +00:00
parent 1aaff0ce2f
commit 7563f4096c
5 changed files with 67 additions and 16 deletions

View File

@@ -74,9 +74,10 @@ StrBuf* GenVic2Sprite (const Bitmap* B, const Collection* A attribute ((unused))
GetBitmapColors (B) != 2 ||
GetBitmapHeight (B) != HEIGHT ||
GetBitmapWidth (B) != WIDTH) {
printf ("w = %u, h = %u\n", GetBitmapWidth (B), GetBitmapHeight (B));
Error ("Bitmaps converted to vic2 sprite format must be in indexed "
"mode with 2 colors max and a size of %ux%u", WIDTH, HEIGHT);
"mode with a size of %ux%u and two colors", WIDTH, HEIGHT);
}
/* Create the output buffer and resize it to the required size. */