diff tools/lib64gfx.h @ 1644:9d9a0e852b3d

Reorder some functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 30 May 2018 00:56:32 +0300
parents 58ef0124394d
children 262300a0359b
line wrap: on
line diff
--- a/tools/lib64gfx.h	Mon May 28 19:58:08 2018 +0300
+++ b/tools/lib64gfx.h	Wed May 30 00:56:32 2018 +0300
@@ -228,28 +228,28 @@
 //
 // Miscellaneous functions
 //
+char *    dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
 void      dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt);
-char *    dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
 
 void      dmSetDefaultC64Palette(DMImage *img);
+BOOL      dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr);
 int       dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt);
-int       dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors);
-BOOL      dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr);
 
-int       dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img);
-BOOL      dmC64GetOpSize(const DMC64EncDecOp *op, const DMC64ImageFormat *fmt, size_t *size);
-
+// C64 bitmap image allocation/freeing
 int       dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size);
 int       dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src);
 void      dmC64MemBlockFree(DMC64MemBlock *blk);
 
-
-// C64 bitmap image allocation/freeing
 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt);
 void      dmC64ImageFree(DMC64Image *img);
 
 
 // Encoding and decoding of formats and images
+int       dmC64ConvertCSDataToImage(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors);
+
+int       dmC64SanityCheckEncDecOp(const int i, const DMC64EncDecOp *op, const DMC64Image *img);
+BOOL      dmC64GetOpSize(const DMC64EncDecOp *op, const DMC64ImageFormat *fmt, size_t *size);
+
 int       dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt);
 
 int       dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);