2030 Commits

Author SHA1 Message Date
Thomas Bernard
c8bc04e413 Fix filebackup when saving.
It was the wrong filename that was backuped when using "Save As".
Now it is the filename selected.
2018-04-06 16:45:35 +02:00
Thomas Bernard
187c7d53e3 Fix a few warnings (from MS Visual Studio 2015) 2018-04-06 16:45:35 +02:00
Thomas Bernard
a584fe65b9 update README.txt
update outdated URLs
Also add a symbolic link to please github :)
2018-04-06 16:23:11 +02:00
Thomas Bernard
6aa268e637 Fix 8bit FX mode selection window 2018-04-06 10:51:28 +02:00
Thomas Bernard
a460fa1a5e readini.c: remove extraneous parentheses to silence a warning 2018-03-20 21:58:22 +01:00
Thomas Bernard
07bb8fe7a4 windows.c: mark "global" variables as static 2018-03-20 21:58:22 +01:00
Thomas Bernard
3cad389e23 windows.c: use fabsf() for float values 2018-03-20 21:58:22 +01:00
Thomas Bernard
71a72d2fae GS_Generate(): remove Warning
diff is int, abs is "int abs(int);"
current->data.pal.h is byte but ds->gradients[id].hue is float.
So cast to int before the substraction
2018-03-20 21:58:22 +01:00
Thomas Bernard
00d51d5494 Reduce_palette(): fix warnings and reduce code complexity 2018-03-20 21:58:22 +01:00
Thomas Bernard
91e6796b92 Set_program_directory(): check return value of readlink() 2018-03-20 21:58:22 +01:00
Thomas Bernard
c55c41fe83 gifanalyzer: main() must return a value 2018-03-20 21:58:22 +01:00
Thomas Bernard
a29168f7ce Splash screen : 2017->2018 2018-03-20 21:58:22 +01:00
Thomas Bernard
ea68ae4fd1 loadrecoil.c: remove warning when compiling with MinGW32 2018-03-19 16:49:42 +01:00
Thomas Bernard
06f49685a8 do not use _mkdir() but plain Win32 CreateDirectoryA() 2018-03-19 16:49:40 +01:00
Thomas Bernard
42a08d0f23 remove some warning when compiling with MinGW32 2018-03-19 16:49:37 +01:00
Thomas Bernard
bae93cba7a use atan2() in Rotate_brush_0_5(). Remove warnings in MSVC++
acos() was replaced by atan2() in Rotate_brush_1_5() in commit
2d8c061e3220a592dd894ccde4ebbd80c6c16897
it was forgotten in Rotate_brush_0_5() ;)
2018-03-19 16:49:35 +01:00
Thomas Bernard
f9616f570a remove warnings when compiling with MSVC++2010 2018-03-19 16:49:32 +01:00
Thomas Bernard
10997509c8 File selector Fix "long" extensions detection under Win32 2018-03-19 14:54:19 +01:00
Thomas Bernard
3e82bd0649 Test_PAL/Load_PAL: replace fread() by Read_bytes() 2018-03-15 13:40:14 +01:00
Thomas Bernard
531cda58b6 Fix Test_GPL() and Load_GPL() 2018-03-15 13:24:59 +01:00
Thomas Bernard
3103629c02 io.c: add Read_byte_line() function 2018-03-15 13:24:13 +01:00
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
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
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