1988 Commits

Author SHA1 Message Date
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
141d0bf698 parseiff: try to parse after the theorical end of the file
some malformed IFF files are like this
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
c29f1c9161 Fix compilation with recoil with MSVC
Also fix handling of long extensions (more than 3 characters)
2018-03-05 17:07:42 +01:00
Thomas Bernard
0fd3fb80fd Load_Recoil(): preserve original picture aspect ratio
skip RECOIL pixel doubling
2018-03-05 15:42:14 +01:00
Thomas Bernard
2995a0e3e1 Load_Recoil(): show number of colors in "comment" 2018-03-05 15:42:14 +01:00
Thomas Bernard
e36c96e21c 3rdparty: add lua and recoil directories to .gitignore 2018-03-05 15:42:14 +01:00
Thomas Bernard
49bc467358 Fix Makefile for building with RECOIL + update Makefile.dep
it was failing when building with make -j3
2018-03-05 15:42:14 +01:00
Thomas Bernard
d9ca8c044b Allow to compile without RECOIL (make NORECOIL=1) 2018-03-05 15:42:14 +01:00
Thomas Bernard
701dec6df3 Load_Recoil_Image(): Read image in multiple files with RECOIL
add Recoil virtual readFile() method to allow loading of Companion files
2018-03-05 15:42:14 +01:00
Thomas Bernard
44b1d5a466 Try to load images with RECOIL (REtro COmputer IMage Library) 2018-03-05 15:42:14 +01:00
Thomas Bernard
f53925f4f5 Load_CM5() : clean up palette setup 2018-03-05 13:55:35 +01:00
Thomas Bernard
9e89fb665b Load_CM5() Fix preview for CM5 format 2018-03-05 13:55:35 +01:00
Thomas Bernard
68cad3884b Load_CM5() update comments 2018-03-05 13:55:35 +01:00
Thomas Bernard
9209cc0a5c Load_CM5(): clear palette if configured to do so 2018-03-05 13:55:35 +01:00
Thomas Bernard
4b4a66d65c Load_CM5() remove uneeded buffer 2018-03-05 13:55:35 +01:00
Thomas Bernard
524bdfba90 improve Test_CM5() 2018-03-05 13:55:35 +01:00
Thomas Bernard
8a1781df09 Delete_safety_backups() fix memory leaks 2018-03-05 09:22:03 +01:00
Thomas Bernard
f32eacaa01 Make compilers happy, remove warnings...
unsigned/signed comparaison in miscfileformat.c
unused argument in readline.c
2018-03-05 09:22:03 +01:00
Thomas Bernard
b98b743d21 Look_for_alternate_ext() fix uninitialized memory access 2018-03-05 09:22:02 +01:00
Thomas Bernard
3870cc8afb Program_shutdown() free all images, backups, brushes. 2018-03-05 09:22:02 +01:00
Thomas Bernard
37eac890c2 memory leak fix : free the main page on exit 2018-03-05 09:22:02 +01:00
Thomas Bernard
5acf27c1b4 call iconv_close() to free iconv resources 2018-03-05 09:22:02 +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
07db9f1567 add alternate URL to download libpng sources 2018-03-02 00:21:26 +01:00
Thomas Bernard
75fcc3dd4f libpng 1.6.32 => 1.6.34 2018-03-02 00:21:08 +01:00
Thomas Bernard
b6c3852aad Display unicode names in script factory as well
So in windows the long filename is shown instead of the short filename
2018-02-23 18:46:28 +01:00
Thomas Bernard
db39392411 Update MSVC project to compile with lua
minor changes to remove need for C features unsupported by MS Visual C
2018-02-23 18:46:22 +01:00
Thomas Bernard
c29a52a4b2 WIN32 Cross build now includes lua 2018-02-22 11:26:40 +01:00
Thomas Bernard
8ec19f523b Easy leakchecks with "make valgrind"
result is readable thanks to the suppression file
2018-02-20 17:24:00 +01:00
Thomas Bernard
3a6968c97c Save_IFF() fix: Remove file after fclose() 2018-02-20 15:45:45 +01:00
Thomas Bernard
854d787e59 io.c: Add Remove_directory() and Remove_path()
Also implement WIN32 version of File_length()
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
d1426c61c5 Generate version.c in MSVC project 2018-02-20 15:45:45 +01:00
Thomas Bernard
ae03cdfc34 convert absolute path to relative path in MSVC project 2018-02-20 15:45:45 +01:00
Thomas Bernard
c24e752ec3 unicode.h: Comment what we support about unicode 2018-02-20 15:45:45 +01:00
Thomas Bernard
519994e005 Add unicoode font files to archives 2018-02-20 15:45:45 +01:00
Thomas Bernard
dc4926b7c0 Fix to compile windows build with MinGW32 2018-02-20 15:45:45 +01:00
Thomas Bernard
3c3ef150a6 improve Test_PPH()
remove one TODO :)
2018-02-20 15:45:45 +01:00
Thomas Bernard
be824627ce loadsave.c: Add functions to open file with alternate extension.
Used by CPC format which are in several files :
PPH format uses PPH, ODD, EVE
CM5 uses CM5 + GFX
2018-02-20 15:45:45 +01:00