From 7fe6037862be63407e50c16a8ccdb07282d8f825 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 5 Sep 2016 09:20:49 -0300 Subject: [PATCH] Cel position must be signed WORD in .ase format specs (fix #1246) --- docs/files/ase.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/files/ase.txt b/docs/files/ase.txt index 647f19485..66d0a84d4 100644 --- a/docs/files/ase.txt +++ b/docs/files/ase.txt @@ -1,5 +1,5 @@ ASE Files (.ASE) Format description -Copyright (C) 2001-2015 by David Capello +Copyright (C) 2001-2016 by David Capello ---------------------------------------------------------------------- 1. References @@ -17,10 +17,9 @@ ASE files use Intel (little-endian) byte order. BYTE An 8-bit unsigned integer value WORD A 16-bit unsigned integer value +SIGNED WORD A 16-bit signed integer value DWORD A 32-bit unsigned integer value -LONG A 32-bit signed integer value BYTE[n] "n" bytes. -RECT Four LONGs (in the order: x-pos, y-pos, width, heigth) STRING length=WORD (how many characters to read next) string=BYTE[length] The \0 character isn't included. @@ -187,8 +186,8 @@ Cel Chunk (0x2005) layer/frame. WORD Layer index (see NOTE.2) - WORD X position - WORD Y position + SIGNED WORD X position + SIGNED WORD Y position BYTE Opacity level WORD Cel type BYTE[7] For future (set to zero) @@ -216,8 +215,8 @@ Cel Chunk (0x2005) Mask Chunk (0x2016) DEPRECATED ---------------------------------------- - WORD X position - WORD Y position + SIGNED WORD X position + SIGNED WORD Y position WORD Width WORD Height BYTE[8] For future (set to zero)