about summary refs log tree commit diff
path: root/converter/ppm/winico.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-27 17:06:12 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-27 17:06:12 +0000
commitc227dbc080d862b734f5f220345746fc8d8146bf (patch)
tree21e8e3574eeb5bba6b7fdba79cd9a97aa4b69ce2 /converter/ppm/winico.h
parent4afa7625fa0819457809a2d54d99ef5ee5ed34e0 (diff)
downloadnetpbm-mirror-c227dbc080d862b734f5f220345746fc8d8146bf.tar.gz
netpbm-mirror-c227dbc080d862b734f5f220345746fc8d8146bf.tar.xz
netpbm-mirror-c227dbc080d862b734f5f220345746fc8d8146bf.zip
Release 10.86.15
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@3870 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/winico.h')
-rw-r--r--converter/ppm/winico.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/converter/ppm/winico.h b/converter/ppm/winico.h
index 4b8ac38b..c6133ef0 100644
--- a/converter/ppm/winico.h
+++ b/converter/ppm/winico.h
@@ -28,21 +28,22 @@ struct MS_Ico_ {
 
 
 struct IC_Entry_ {
-   u1 width;
-   u1 height;
    /*
-    * color_count is actually a byte (u1)... but 0 = 256, so I've used a short (u2).
+    * width, height, color_count are a byte in the format, but 0 = 256,
+    * so it takes a short (u2) to represent the value normally.
     */
+   u2 width;
+   u2 height;
    u2 color_count;
    u1 reserved;
    u2 planes;
-   u2 bitcount;
+   u2 bitcount;    /* 0, 1, 4, or 8 */
    u4 size_in_bytes;
    u4 file_offset;
    IC_InfoHeader ih;
    IC_Color * colors;
    /*
-    * Below here, I have useful fields which aren't in the spec, but 
+    * Below here, I have useful fields which aren't in the spec, but
     * save having to keep stoopid amounts of global data.
     */
    u1 * andBitmap;        /* Used in reader. */