diff tools/lib64gfx.h @ 924:732787cccca8

Add dimension (w/h) information fields to C64 image format struct.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Feb 2015 15:23:09 +0200
parents 0f477446448d
children 23b14d62bf67
line wrap: on
line diff
--- a/tools/lib64gfx.h	Wed Feb 25 15:09:37 2015 +0200
+++ b/tools/lib64gfx.h	Wed Feb 25 15:23:09 2015 +0200
@@ -186,6 +186,10 @@
 
     size_t addr; // Loading address (0 if no loading address)
     size_t size; // Size, including loading address. Only used in encoding, if even there (0 if no static size)
+
+    int width, height; // Width and height in pixels
+    int ch_width, ch_height; // Width and height in charblocks
+
     int  (*probe)(const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
     int  (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
     int  (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt);