Thomas Bernard
30be9d975e
Use mingw32-strip when compiling with WIN32CROSS=1
2018-05-22 18:00:28 +02:00
Thomas Bernard
3a29a653ca
remove a warning in WIN32 build
2018-05-22 17:55:00 +02:00
Thomas BERNARD
56a3c9566d
Program_version SVN_revision are now const char[]
2018-05-22 17:34:52 +02:00
Thomas BERNARD
e4fc1f8e62
realpath.c: include limits.h on all platforms except WIN32
2018-05-22 17:29:59 +02:00
Thomas BERNARD
9ff06cbdef
Automatically update the version stored in English.lproj/InfoPlist.strings
...
This are the versions displayed in Finder info and "about Grafx2"
2018-05-15 17:56:45 +02:00
Thomas Bernard
d85e5ee893
Fix build from an extracted grafx2-2.5.*-src.tgz
...
we check if we are in a GIT working tree and load revision
from version.c if we are not.
also includes grafx2-2.5*-src.tgz in artifacts
2018-05-15 15:33:15 +02:00
Thomas Bernard
0890c4490d
Default to CC=gcc but allow to define other values
...
so it is possible to
> CC=clang make (environment)
or
> make CC=gcc-5 (command-line)
2018-05-15 15:33:15 +02:00
Thomas Bernard
d4746ea72e
Fix MacOS file case in include
...
<corefoundation/corefoundation.h>
should be
<CoreFoundation/CoreFoundation.h>
Many MacOS FS are case insensitives, but not all, so we must use
the correct case.
Issue detected by the MacPorts buildbot : https://trac.macports.org/ticket/56490
2018-05-15 15:33:15 +02:00
Thomas Bernard
5865be3383
fix LUACOPT when cross compiling for WIN32
2018-05-15 15:33:15 +02:00
boomlinde
2639dec301
Add -size commandline argument
2018-05-14 19:46:19 +02:00
Thomas Bernard
994b950616
properly set GIT_BRANCH when building on gitlab-ci
...
https://docs.gitlab.com/ce/ci/variables/README.html
CI_COMMIT_REF_NAME
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-05-14 00:05:19 +02:00
Thomas Bernard
f788d80669
gfx2.rc: include VERSIONINFO (for win32 .exe)
2018-05-13 21:30:29 +02:00
Thomas Bernard
f0084545fd
add Icon resource when cross compiling for win32
2018-05-13 19:41:35 +02:00
Adrien Destugues
8e94f338df
Fix "make install".
2018-05-06 19:16:32 +02:00
Adrien Destugues
60b5e5fd50
Prepare 2.5 release.
...
- Update help and credits
- Change version
2018-05-06 17:36:46 +02:00
Adrien Destugues
5918435cd8
Fix haiku/gcc2 build.
2018-05-06 17:02:38 +02:00
Thomas Bernard
758bc0833c
fix Load_IFF() when bpp=0 !
2018-04-18 18:10:16 +02:00
Thomas Bernard
c6014da99f
FLI/FLC: fix loading of "empty" frames
2018-04-16 13:29:03 +02:00
Thomas Bernard
713bf5a590
Add explicit comments on file format constants
2018-04-16 13:09:40 +02:00
Thomas Bernard
b83d51d2f9
use .flc as default for FLI/FLC format, not to be confused with C64 FLI
2018-04-16 13:08:46 +02:00
Thomas Bernard
c651d0c33a
Save_IMG() remove fclose() for file not open
2018-04-16 12:31:12 +02:00
Thomas Bernard
bb7b187275
Load FLI/FLC autodesk animator files.
2018-04-16 07:03:17 +00:00
Thomas BERNARD
72550efe66
OSX : build a zip containing Grafx2.app
2018-04-06 20:03:54 +02:00
Thomas BERNARD
6c1e011de7
Fix "Select Drive" in file selector
...
Add HDD icon for /.
HFS Volumes have icon
2018-04-06 20:03:54 +02:00
Thomas BERNARD
54baf87bb0
Mac OS X: use bsdtar or gnutar instead of default tar if available
2018-04-06 17:01:50 +02:00
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
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
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