Thomas Bernard
3ab746ef29
fileformats.c: Get rid of "unreferenced argument" Warning
2018-03-15 12:21:22 +01:00
Thomas Bernard
cd8291b6ff
loadsave: change Test_XXX functions to open file only once
2018-03-15 12:21:22 +01:00
Thomas Bernard
b039977f5f
move Test_XXX/Load_XXX/Save_XXX functions prototypes to fileformats.h
2018-03-15 12:21:16 +01:00
Thomas Bernard
ebaccbab3e
Load_INFO() : load comments + fix for NewIcons
...
fix Palette loading of newIcons when the palette spans
on several lines
2018-03-14 10:48:47 +01:00
Thomas Bernard
856ba45839
Load_INFO() right colors for 2nd image of NewIcons
2018-03-12 11:39:10 +01:00
Thomas Bernard
d57c6dd4ba
Load_INFO Add more colors in default palette
2018-03-12 11:39:10 +01:00
Thomas Bernard
6efc257229
Load_IFF() fix for some ILBM containing only palette
2018-03-12 11:39:10 +01:00
Thomas Bernard
b388bc56a8
Load_INFO() fix memory leak
2018-03-12 11:39:10 +01:00
Thomas Bernard
e48e2101e4
Load_INFO() Amiga Icons : don't load 2nd image in preview mode
2018-03-12 11:39:10 +01:00
Thomas Bernard
cfd5839ba5
Load Amiga Icons found in .info files
2018-03-12 11:39:10 +01:00
Thomas Bernard
c03984fccb
Load_IFF() set a default grayscale palette for files without CMAP
2018-03-06 16:25:39 +01:00
Thomas Bernard
144207f6d6
Load_IFF() improve 4bits per component palettes
2018-03-06 16:25:39 +01:00
Thomas Bernard
975c343cd7
Load_IFF() cleanup. remove counter variable
2018-03-06 16:25:39 +01:00
Thomas Bernard
5907219e6f
Load_IFF(): Use same palette structures for SHAM and PCHG + PCHG ok with EHB modes
2018-03-06 16:25:39 +01:00
Thomas Bernard
ca352e756c
Load_IFF() parse RAST chunks
2018-03-06 16:25:39 +01:00
Thomas Bernard
2338e99d47
Load_IFF(): parse DYCP and CTBL chunks found in Dynamic Hires files
2018-03-06 16:25:39 +01:00
Thomas Bernard
aca95e4ca0
remove left over printf
2018-03-06 16:25:39 +01:00
Thomas Bernard
b0203ff93c
Display original picture size in Load/Save dialog when displaying a thumbnail
2018-03-06 16:25:39 +01:00
Thomas Bernard
3876f8e1c5
Load_IFF(): Move ILBM decoding to LBM_Decode() and display ILBM thumbnails
...
also dont load thumbnail with invalid dimensions
2018-03-06 16:25:39 +01:00
Thomas Bernard
03d0d5e882
Save_XPM() properly add a , after each line
2018-03-02 22:03:15 +01:00
Thomas Bernard
9bd758acdc
Save_XPM(): Save transparency information.
...
As XPM is mainly designed for Icons, that is useful.
2018-03-02 22:03:15 +01:00
Thomas Bernard
999458d047
Save_XPM(): save 1 char per pixel if possible
...
" and \ are not valid characters for XPM pixels
2018-03-02 22:03:15 +01:00
Thomas Bernard
3a6968c97c
Save_IFF() fix: Remove file after fclose()
2018-02-20 15:45:45 +01:00
Thomas Bernard
60beebc9ac
fixes for MSVC non-standard C library
...
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf
a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
87e4cfad94
MSVC fix: no arithmetics on void * pointers
2018-02-20 15:45:45 +01:00
Thomas Bernard
3d4f39fe36
Use Open_file_write() in Save_GPL() Save_PAL() and Save_XPM()
...
They are Text format, correctly handle line endings
according to the type
2018-02-20 15:45:45 +01:00
Thomas Bernard
74818299a3
use Open_file_read()/Open_file_write()
2018-02-20 15:45:45 +01:00
Thomas Bernard
3149d04110
Load_IFF(): load multi palette ILBMs using the BEAM chunk
2018-02-18 21:11:40 +01:00
Thomas Bernard
d4bf0a8af9
Load_IFF(): Load Animations saved by DeluxePaint ST
2018-02-18 21:11:40 +01:00
Thomas Bernard
2cdb6a4da4
Load_IFF() properly set frame duration for animations
2018-02-18 21:11:40 +01:00
Thomas Bernard
2d7ecbda0c
Load_IFF() improve compatibilty with malformed IFF files
2018-02-18 21:11:40 +01:00
Thomas Bernard
c1f5ec0381
Load_IFF() animations. Support XOR in mode 5 and frame interleave of 2
2018-02-18 21:11:40 +01:00
Thomas Bernard
f0c5854021
Load_IFF() support ILBM animations type 74
2018-02-18 21:11:40 +01:00
Thomas Bernard
e31fbabbd7
Load_IFF() parse Deluxe Paint ANimation (DPAN) chunk
2018-02-18 21:11:40 +01:00
Thomas Bernard
5ff093feca
Load_IFF() move ANHD data to T_IFF_AnimHeader
2018-02-18 21:11:40 +01:00
Thomas Bernard
28916b65cf
Load_IFF() Fix ILBM 24bit swapped R & B components
2018-02-18 21:11:40 +01:00
Thomas Bernard
925dd7fcc9
Load_IFF() Fix parsing of ILBM with mask=1
2018-02-18 21:11:40 +01:00
Thomas Bernard
fcb0502d2b
Load_IFF() fix overflow in ColorCycling parsing CRNG
2018-02-18 21:11:40 +01:00
Thomas Bernard
a90170f3d1
Save_IFF(): better handling of pixel aspect ratio
2018-02-18 21:11:40 +01:00
Thomas Bernard
a94f07ddde
Save_IFF(): support Comment saving (in ANNO chunk)
2018-02-18 21:11:40 +01:00
Thomas Bernard
268887f456
Load_IFF() use CAMG to set EHB palette
...
Fixes loading of Cougar_Sanasmatron.iff
Some ILBM have 64 colors in palette for EHB images.
That's OK when the 32 extra colors are valid (half bright ones)
but some have garbage in the CMAP
2018-02-18 21:11:40 +01:00
Thomas Bernard
544a996361
Load_IFF() support of ANIM/ANHD/DLTA animated ILBM
2018-02-18 21:11:40 +01:00
Thomas Bernard
1311cfefb0
Load_IFF() use CAMG to force HAM mode
2018-02-18 21:11:40 +01:00
Thomas Bernard
d4753919ee
Load_IFF() parse BMHD as a normal chunk. Use stored_bit_planes var
2018-02-18 21:11:40 +01:00
Thomas Bernard
2bfbc03cb8
Display the bpp of the picture in the Load/Save Dialog
2018-02-18 21:11:40 +01:00
Thomas Bernard
039f9af663
Load_IFF() PCHG chunk to support "Palette Change" ILBMs
2018-02-18 21:11:40 +01:00
Thomas Bernard
d59c7b6d26
Load_IFF() : support ACBM IFF subtype
2018-02-18 21:11:40 +01:00
Thomas Bernard
f6fa546480
Load_IFF() support ANNO chunks
2018-02-18 21:11:40 +01:00
Thomas Bernard
747867b9e2
Load_IFF() translate comments, break in failed for loops
2018-02-18 21:11:40 +01:00
Thomas Bernard
c7444011ca
Load_IFF() add parsing of CLUT chunks
2018-02-18 21:11:40 +01:00