Thomas Bernard
cfd5839ba5
Load Amiga Icons found in .info files
2018-03-12 11:39:10 +01:00
Thomas Bernard
44a8bab861
Update online help about the Circles and Ellipses
2018-03-10 00:46:11 +01:00
Thomas Bernard
30f23b93ef
Massive change of button callback function prototypes
2018-03-10 00:46:11 +01:00
Thomas Bernard
f2d579695c
implements selection of circle/ellipse mode with right button
...
see http://pulkomandy.tk/projects/GrafX2/ticket/54
2018-03-10 00:46:11 +01:00
Thomas Bernard
df73e91c08
Implement "corner to corner" Gradient ellipses
2018-03-10 00:46:11 +01:00
Thomas Bernard
c1afa188a2
Change empty/filled Ellipse drawing to draw ellipse inscribed in rectangle
...
still to do gradient ellipses.
see http://pulkomandy.tk/projects/GrafX2/ticket/54
2018-03-10 00:46:11 +01:00
Thomas Bernard
d6ce86cae4
Remove Circle_limit global variable
2018-03-10 00:46:11 +01:00
Thomas Bernard
ce1b55be03
graph.c: Pixel_figure is not a global var anymore
2018-03-10 00:46:11 +01:00
Thomas Bernard
be8b05a384
remove Ellipse_vertical_radius_squared Ellipse_horizontal_radius_squared Ellipse_limit global variables
2018-03-10 00:46:11 +01:00
Thomas Bernard
6b97fcc322
Remove Ellipse_cursor_X/Y and Circle_cursor_X/Y global variables
2018-03-10 00:46:11 +01:00
Thomas Bernard
6be7cb1e9f
move circle/ellipse functions from misc.c to graph.c
...
void Ellipse_compute_limites(short horizontal_radius,short vertical_radius);
byte Pixel_in_ellipse(void);
byte Pixel_in_circle(void);
2018-03-10 00:46:11 +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
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
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
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